built in java methods
show Character.isDigit(); in an example with say, a string
a better resource for learning Java
exercise required me to use isDigit() with a string
The nearest I know using a standard API method is,Because the first “token” in that text is convertible to an int, that code will print true.
Carey Brown wrote:If you want to determine if a String is an int you have to write your own. . . .