Please help me to compile my first program in Java
hello
I made my first program in Java and I try to compile it using cmd but unfortunatelly result of this
symbol: method printIn(String)
location: variable out of type PrintStream
How can I fix it?
The code That I wrote it was:
class hello {
public static void main (String args []){
System.out.PrintIn("hello");
}
}
I save it in this mode hello.java
Re: Please help me to compile my first program in Java
Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.
Please refer to the link above and post your code correctly.
As you were told in your previous post, Java is case sensitive. 'Println()' is not the same as 'println()', and the latter is correct. Notice also that it's println() with a small 'L', not a capital (or small) 'I'.
Not an error, but by convention in Java class names are capitalized.