Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Oskar Mora
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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)
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Case matters in Java.
Save the file primitiva.java as Primitiva.java
 
fred rosenberger
lowercase baba
Bartender
Posts: 12126
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic