Homeworks from java basics course