• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Need ....... end this program of Lottery.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


D:\Pruebas\SeparaPalabras\src\primitiva>javac primitiva.java
primitiva.java:2: class Primitiva is public, should be declared in a file named
Primitiva.java
public class Primitiva {
^
primitiva.java:10: cannot find symbol
symbol : class ExcepcionNumeroDuplicado
location: class Primitiva
throws ExcepcionNumeroDuplicado, ExcepcionNumeroFueraRango,
^
primitiva.java:10: cannot find symbol
symbol : class ExcepcionNumeroFueraRango
location: class Primitiva
throws ExcepcionNumeroDuplicado, ExcepcionNumeroFueraRango,
^
primitiva.java:11: cannot find symbol
symbol : class ExcepcionCombinacionCompleta
location: class Primitiva
ExcepcionCombinacionCompleta {
^
primitiva.java:12: cannot find symbol
symbol : class ExcepcionCombinacionCompleta
location: class Primitiva
if (numGuardados > 5) throw new ExcepcionCombinacionCompleta();
^
primitiva.java:14: cannot find symbol
symbol : class ExcepcionNumeroFueraRango
location: class Primitiva
throw new ExcepcionNumeroFueraRango("El n·mero" + n
^
primitiva.java:18: cannot find symbol
symbol : class ExcepcionNumeroDuplicado
location: class Primitiva
throw new ExcepcionNumeroDuplicado("El n·mero " + n +
^
7 errors

^
2 errors

I dont know .......... what problem have :O

ExcepcionCombinacionCompleta = ExceptionEndCombination (combination complete)
ExcepcionNumeroFueraRango =Out of bounds
ExcepcionNumeroDuplicado= numbre duplicate.

and have another class but any problem . (to put the 6 numbers)
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Case matters in Java.
Save the file primitiva.java as Primitiva.java
 
lowercase baba
Posts: 13086
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note that if you are in windows, you may have to delete the file and re-save. Since WINDOWS is not case sensitive, it can get weird when doing a "Save as" and using different case.
 
Oskar Mora
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This code on NetBeans not have problem ........ but ....... the other have problems :S:S:S:S
 
Oskar Mora
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*/import java.lang.*;
class ExcepcionCombinacionCompleta extends Exception {

public ExcepcionCombinacionCompleta() {
throw new UnsupportedOperationException("Fin");
}

}

on all exceptions..............

YUHUUUUUUUUUUUUUUUUUUUU :P

I finish this program :P
 
reply
    Bookmark Topic Watch Topic
  • New Topic