From: Jérôme Benoit Date: Sun, 3 Jun 2018 13:19:48 +0000 (+0200) Subject: exo6: Code cleanup. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=efaffa4dc311c81772b446a806c903aece0f51cc;p=Project_POO.git exo6: Code cleanup. --- 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);