Advertisement
TriiNoxYs

IsNumeric(String) Java

Jul 5th, 2015
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.10 KB | None | 0 0
  1. public static boolean isNumeric(String str) {  
  2.     return str.matches("[-+]?\\d*\\.?\\d+");  
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement