Ayush Singh Ayush Singh - 11 months ago 63
Java Question

I am new to java and am trying to compile this code

I am learning Java programing by Head First Java Book. There I came across System.out.printIn. I tried to use it in This program

public class Program{
public static void main(String[] args){
System.out.printIn("JA");
System.out.printIn("Va");
}


But whenever I try to compile it I am getting this error in cmd

Program.java:3: error: cannot find symbol
System.out.printIn("JA");
^
symbol: method printIn(String)
location: variable out of type PrintStream
Program.java:4: error: cannot find symbol
System.out.printIn("Va");
^
symbol: method printIn(String)
location: variable out of type PrintStream
2 errors


Please Help

Answer Source

It's println not printIn. See the difference of L and I

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download