a040ee9a04264bbe990170c86e8c7b87c86235d3
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
);
17 public double evaluer() throws NotDigitException
{
19 return Character
.getNumericValue(c
);
21 throw new NotDigitException(c
+ " is not a digit");