-
method selector error
I just started learning java and I have run into this error message:
HelloWorld.java:5: cannot find symbol
symbol : method print1n(java.lang.String)
location: class java.io.PrintStream
System.out.print1n("hello world");
^
1 error
when I run this code:
public class HelloWorld
{
public static void main(String [] args)
{
System.out.print1n("hello world");
}
}
can anyone tell me why I am getting this error mesage?
-
println has a lower case "L" in it, not the number "1". I think that it comes from print line
-
Code:
public void print1n() {
System.out.print("n");
}
;)
-