try {
if ((Object) Integer.parseInt(letter) instanceof Integer){
word=word+" ";
output.write(word);
break;
}
}catch(Exception e){}
Hi
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Prassha
12 June 2020, 23:03
For anyone trying to find if a character is Integer or not using try -catch
0