This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 10167
    
    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: 11153
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Need ....... end this program of Lottery.
 
Similar Threads
Java not installed right?
Why doesn't this program work???
Problems with importing from another source code
about accessing and importing from directory
Tomcat 6 class in package not found by compiler