Java day 1+2