CS112 Java class