Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to check if string is double or not in java

String decimalPattern = "([0-9]*).([0-9]*)";  
String number="20.00";  
boolean match = Pattern.matches(decimalPattern, number);
System.out.println(match); //if true then decimal else not  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #double #java
ADD COMMENT
Topic
Name
1+6 =