how can i make the input only string? such as other types like int and double wont be allowed?
what kind of exception shall i use?
what kind of exception shall i use?
public static boolean hasDigit(String s) { //Go through the string's chars one at a time looking for a digit }
Comment