Update and clean code of java essentials exercices.