Java Task : cosmetic changes