Back
Java Compiler
Reset
Clear
Run
Code
public class Main { public static void main(String[] args) { System.out.println("Hello, Java!"); if (args.length > 0) { System.out.println("First arg: " + args[0]); } } }
STDIN (optional)
Args (space separated)
Output