Source: http://ressources.unisciel.fr/algoprog/s12ifcase/emodules/if01mexerc1/res/if01exercs3-enonce-java-xxx.pdf