Answers for "how to say in java that if a double has a letters in it?"

1

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
Posted by: Guest on October-01-2021

Code answers related to "how to say in java that if a double has a letters in it?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language