CS202 Java-114
System.out.print (
StringValue
);
System.out.println (
StringValue
);
Using Java output device
l
METHOD CALL SYNTAX
l
l
l
l
l
These examples yield the same output.
l
l
System.out.print(“The answer is, ”);
l
System.out.println(“Yes and No.”);
l
l
System.out.println(“The answer is, Yes and No.”);