Task done on Java