so decided learn how program. started using old book on how program. used disc install jdk 3.something , started reading. first thing has program sample, similar "hello world"
this have, typed how book said to:
//my first java program public class cooljava { public static void main (string args[]) { system.out.print1n("java cool"); } }
this typed in command prompt:
c:\users\johns_000\my documents>javac cooljava.java
the path correct.
this said
cooljava.java:7: cannot find symbol symbol : method print1n(java.lang.string) location: class java.io.printstream system.out.print1n("java cool"); ^ 1 error
and thats it. please help. dont want continue until can work. p.s. i'm using windows 8. thanks!
update: switched 1 still came same error, thing changed says instead of 1 in error. other suggestions? btw, not updating jdk because im affraid wont work because scripting language may have changed or that.
update again: miss-read answers, put not l. of help! works now!
it's system.out.println("java cool");
misspelling println.
Comments
Post a Comment