Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

isnumeric matches in java

public static boolean isNumeric(String str) {
  return str.matches("-?d+(.d+)?");  //match a number with optional '-' and decimal.
}
 
PREVIOUS NEXT
Tagged: #isnumeric #matches #java
ADD COMMENT
Topic
Name
1+7 =