From efaffa4dc311c81772b446a806c903aece0f51cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 3 Jun 2018 15:19:48 +0200 Subject: [PATCH] exo6: Code cleanup. --- exo6/Chiffre.java | 1 + 1 file changed, 1 insertion(+) diff --git a/exo6/Chiffre.java b/exo6/Chiffre.java index a040ee9..6774f5e 100644 --- a/exo6/Chiffre.java +++ b/exo6/Chiffre.java @@ -14,6 +14,7 @@ class Chiffre extends Facteur { private boolean isChiffre() { return Character.isDigit(c); } + public double evaluer() throws NotDigitException { if(isChiffre()) { return Character.getNumericValue(c); -- 2.34.1