From: Geoffrey S. K. <ge...@kn...> - 2007-12-17 22:32:46
|
The class java.util.Scanner was introduced with JDK 1.5. If you can =20 install a newer JDK than 1.4.2 on your computer, you should be in =20 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 =20= > 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=3Dnew Scanner(System.in); > int a; > System.out.println("Enter A Number"); > a=3Din.nextInt(); > if (a%7=3D=3D0) > {System.out.println("Boom");} > } > }{code} > > but when i try to compile it sais: > > {code}3 errors found: > File: D:\=D7=AA=D7=95=D7=9B=D7=A0=D7=95=D7=AA\drjava\Boom7.java = [line: 1] > Error: cannot resolve symbol > symbol : class Scanner > location: package util > File: D:\=D7=AA=D7=95=D7=9B=D7=A0=D7=95=D7=AA\drjava\Boom7.java = [line: 6] > Error: cannot resolve symbol > symbol : class Scanner > location: class Boom7 > File: D:\=D7=AA=D7=95=D7=9B=D7=A0=D7=95=D7=AA\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..? > --=20 > 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/marketpla= ce > _______________________________________________ > Drjava-users mailing list > Drj...@li... > https://lists.sourceforge.net/lists/listinfo/drjava-users |