Home work or class work java