Java class 3