Cleaned up java.java

Made class more compliant with Java code formatting conventions.