-4

When I run this Java code I get the error "System.out.printLn("Java is more complicated than python"); ^ symbol: method printLn(String) location: variable out of type PrintStream" My Code is:

class complicated{
    public static void main(String args[]){
        System.out.printLn("Java is more complicated than python");
    }
}

P.S I know this question has been asked before but I don't have System.out.printIn instead of System.out.printLn.

1 Answers1

0

You should do this:

class complicated{
    public static void main(String args[]){
        System.out.println("Java is more complicated than python");
    }
}

Here is a good link on System.out.print works:

How does System.out.print() work?

Gauravsa
  • 6,330
  • 2
  • 21
  • 30