Code scribbled during Java Revision