Source: http://ressources.unisciel.fr/algoprog/s81dates/emodules/dt09mexerc1/res/dt09exerc1-cresolu-java-xxx.pdf