I reformatted the Java code