coolnickname

Untitled

Nov 28th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Double i;
  2. try{
  3. i = Double.parseInt("666");
  4. }catch(InvalidDoubleException e){
  5. //This happens when it is not a number
  6. e.printstacktrace();
  7. }
  8.  
  9. if(i == null){
  10. //Not a number
  11. }else{
  12. //it's a number
  13. }
Advertisement
Add Comment
Please, Sign In to add comment