CS246 Java Class