You have to convert your char into a numeric value:
sum += Character.getNumericValue(digit);
1
solved Guessing Game Java
You have to convert your char into a numeric value:
sum += Character.getNumericValue(digit);
1
solved Guessing Game Java