Java school assignments