LiveExample: Welcome.java
Source Code Editor:
public class Welcome { public static void main(String[] args) { // Display message Welcome to Java! on the console FILL_CODE_OR_CLICK_ANSWER } }
Choose a JDK:
8
9
10
11
12
13
14
Execution Result:
JDK8>javac Welcome.java Compiled successful JDK8>java Welcome Welcome to Java! JDK8>
public class Welcome { public static void main(String[] args) { // Display message Welcome to Java! on the console FILL_CODE_OR_CLICK_ANSWER } }