Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Double i;
- try{
- i = Double.parseInt("666");
- }catch(InvalidDoubleException e){
- //This happens when it is not a number
- e.printstacktrace();
- }
- if(i == null){
- //Not a number
- }else{
- //it's a number
- }
Advertisement
Add Comment
Please, Sign In to add comment