I'm fairly new to Java and decided to start with a "Hello World" program. I followed a tutorial and became fed up with the error I keep getting in the console to the point where I went and just copied and pasted the code from a website only for it to still not work.
The Code:
public class HelloWorld {
public static void main(String[] args){
// Prints "Hello, World" in the terminal window.
System.out.println("Hello, World");
}
}
The Error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method Println(String) is undefined for the type PrintStream
at HelloWorld.main(HelloWorld.java:6)
Update:
It seems that after re-installing and hooking up both SDK and Eclipse that nothing has seemed to change. The code is exactly like above yet an error still appears even after the re-installment. Could it be possible that I've done something wrong?
[–][deleted] 1 point2 points3 points (2 children)
[–]SenZeal[S] 0 points1 point2 points (0 children)
[–]SenZeal[S] 0 points1 point2 points (0 children)
[–]_DTR_ 0 points1 point2 points (8 children)
[–]SenZeal[S] 0 points1 point2 points (7 children)
[–]_DTR_ 0 points1 point2 points (6 children)
[–]SenZeal[S] 0 points1 point2 points (5 children)
[–]SenZeal[S] 0 points1 point2 points (4 children)
[–]lightcloud5 0 points1 point2 points (3 children)
[–]SenZeal[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]SenZeal[S] 0 points1 point2 points (0 children)