Java class 4