AP Computer Science. this class is in java