|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
A begginer questionHello, I'm really new in the DrJava thing, I'm learning it right now in school.. lol
I'm trying to use now drjava at home. I downloaded the drjava from : http://drjava.org version: drjava-stable-20070828-1759, I got the compiler (JDK 1.4.2_16) Now, I've done this newbie program: {code}import java.util.Scanner; public class Boom7 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int a; System.out.println("Enter A Number"); a=in.nextInt(); if (a%7==0) {System.out.println("Boom");} } }{code} but when i try to compile it sais: {code}3 errors found: File: D:\תוכנות\drjava\Boom7.java [line: 1] Error: cannot resolve symbol symbol : class Scanner location: package util File: D:\תוכנות\drjava\Boom7.java [line: 6] Error: cannot resolve symbol symbol : class Scanner location: class Boom7 File: D:\תוכנות\drjava\Boom7.java [line: 6] Error: cannot resolve symbol symbol : class Scanner location: class Boom7{code} Like it has something with the Scanner,, a problem?.. please help me what do I need to do..? |
|
|
Re: A begginer questionThe class java.util.Scanner was introduced with JDK 1.5. If you can
install a newer JDK than 1.4.2 on your computer, you should be in business. You can get one from java.sun.com. Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk On Dec 17, 2007, at 15:06, GuyG wrote: > Hello, I'm really new in the DrJava thing, I'm learning it right now > in > school.. lol > I'm trying to use now drjava at home. > I downloaded the drjava from : http://drjava.org version: > drjava-stable-20070828-1759, I got the compiler (JDK 1.4.2_16) > Now, I've done this newbie program: > {code}import java.util.Scanner; > public class Boom7 > { > public static void main(String[] args) > { > Scanner in=new Scanner(System.in); > int a; > System.out.println("Enter A Number"); > a=in.nextInt(); > if (a%7==0) > {System.out.println("Boom");} > } > }{code} > > but when i try to compile it sais: > > {code}3 errors found: > File: D:\תוכנות\drjava\Boom7.java [line: 1] > Error: cannot resolve symbol > symbol : class Scanner > location: package util > File: D:\תוכנות\drjava\Boom7.java [line: 6] > Error: cannot resolve symbol > symbol : class Scanner > location: class Boom7 > File: D:\תוכנות\drjava\Boom7.java [line: 6] > Error: cannot resolve symbol > symbol : class Scanner > location: class Boom7{code} > > Like it has something with the Scanner,, a problem?.. > please help me what do I need to do..? > -- > View this message in context: http://www.nabble.com/A-begginer-question-tp14374022p14374022.html > Sent from the drjava-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Drjava-users mailing list > Drjava-users@... > https://lists.sourceforge.net/lists/listinfo/drjava-users ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Drjava-users mailing list Drjava-users@... https://lists.sourceforge.net/lists/listinfo/drjava-users |
|
|
Re: A begginer questionok i downloaded the 1.6 (Kit 6 Update 3) and it seems to be fine.
Just one last question. In school when I run the program, when the drjavav need to print to the user something (lets say: println("Enter a number") it's open a window (pop-up) and in the 1.6 it just write it in the interactions (bottom screen), can i change it to the pop-up thing?.. it's more comfortable.. thx, Guy
|
| Free embeddable forum powered by Nabble | Forum Help |