Which of the following is incorrect?
public class PrintStatements
{
public static void main(String[] args)
{
String str = "Hai friend how are you";
System.out.print(str); //LINE 1
System.out.println(); //LINE 2
System.out.printf(str, str); //LINE 3
System.out.format(str, str); //LINE 4
}
}