Friday, April 24, 2009

Write System.out.println() in a simple way

System.out.println() method can be shortened by creating
a couple of helper methods.


private static void prt(String s) {
System.out.println(s);
}

private static void prt() {
System.out.println();
}

No comments:

Post a Comment