Just started to learn
Java from the web. Absolute newbie. Feel encouraged by "No question too simple or small . . ."
Downloaded JDK and Eclipse and tried the "Hello World" program. The code I type would not come through whereas an identical code copy pasted from the internet works just fine.
I have tried for hours to see the difference between my work and the one I copy paste. Cant see a single difference. The one I typed is
package chapter1.examples;
public class HelloWorld {
//my first comment
public static void main(
String[] args) {
System.out.printIn("Hello World !"):
}
}
This is the error I get
Exception in
thread "main" java.lang.Error: Unresolved compilation problem:
The method printIn(String) is undefined for the type PrintStream
at chapter1.examples.HelloWorld.main(HelloWorld.java:6)
Where is the problem? Been at it for nearly couple of hours now.
Thanks for any help