Java school project