Bunch of Java code