Java Task : small correction