the java exercise