belongs to collection: Java exercises
What is the compile-time error in this program?
public class Test { public static void main(String[] args) { System.out.println("Hello", "World!"); } }
Java interprets the comma in the println method to mean that two strings are passed to println. It's likely the programmer meant to do this:System.out.print("Hello, World!");
the true solve:
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Java interprets the comma in the println method to mean that two strings are passed to println. It's likely the programmer meant to do this:
System.out.print("Hello, World!");
the true solve: