Java Fundamental task