Making exercices to learn Java