6774f5e9ac9ef5d9c724bedc9b6d64dc6c92b746
2 class Chiffre
extends Facteur
{
5 Chiffre(Character c
) throws NotCharacterException
{
6 //TODO?: remove extragenous whitespace
7 if (Character
.isLetterOrDigit(c
)) {
10 throw new NotCharacterException(c
+ " is not a character type");
14 private boolean isChiffre() {
15 return Character
.isDigit(c
);
18 public double evaluer() throws NotDigitException
{
20 return Character
.getNumericValue(c
);
22 throw new NotDigitException(c
+ " is not a digit");