wood burning stoves*
The moose likes Beginning Java and the fly likes Need ....... end this program of Lottery. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need ....... end this program of Lottery." Watch "Need ....... end this program of Lottery." New topic
Author

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

Oskar Mora
Greenhorn

Joined: Jul 17, 2009
Posts: 9


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

Joined: Jul 26, 2007
Posts: 10268
    
    8

Case matters in Java.
Save the file primitiva.java as Primitiva.java


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11246
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Oskar Mora
Greenhorn

Joined: Jul 17, 2009
Posts: 9


This code on NetBeans not have problem ........ but ....... the other have problems :S:S:S:S
Oskar Mora
Greenhorn

Joined: Jul 17, 2009
Posts: 9
*/import java.lang.*;
class ExcepcionCombinacionCompleta extends Exception {

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

}

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

YUHUUUUUUUUUUUUUUUUUUUU :P

I finish this program :P
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need ....... end this program of Lottery.