Schoolproject in Java