private static String itoa(int i)
I like Java's verbosity; it is consistant and clear. But sometimes you want succinct things.
/** "Returns a String object representing the specified integer." */
private static String itoa(int i){
return Integer.toString(i);
}
/** "Returns a String object representing this Integer's value." */
private static String itoa(Integer i){
return i.toString();
}
Also, I realized I had been using assert
statements without -enableassertions
for the last month, which did me very little good. A good habit, I suppose.
ALSO:
private static void printl(String s) {
System.out.println(s);
}
private static void error(String s) {
System.err.println(s);
}