public class Hello {
public static void main(String... args) {
System.out.println("yippee!");
}
}
Main is varargsable
It's cute, although I admit there isn't much utility in it:
Subscribe to:
Post Comments (Atom)
1 comment:
It can make your tests for your Main classes prettier. I discovered this while looking through the H2 Database testsuite.
Post a Comment