Simple tasks java