I want to know if a particular exception is available for catching non-String
input in java.
My purpose is that if a user enters other than String
input, it goes to a catch block and displays "Enter String input".
I know that for numeric input there is NumberFormatException
, so is there any Exception like this?