4 ms·
Sorry, maybe I minimized my example too eagerly. class HelloWorldApp { public static void main(String[] args) { switch (args.length) {
by ben0x539 13y ago
Sorry, maybe I minimized my example too eagerly.
class HelloWorldApp {
public static void main(String[] args) {
switch (args.length) {
case 0: System.out.println("No args!"); break;
case 1: System.out.println("One arg!"); break;
default: System.out.println("Multiple args!"); break;
}
System.out.println("Hello World!");
}
}
This also seems to not emit the "Hello World" println.