a little schoolproject in JAVA