Code solution for question
How to: 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
You can copy the solution for question: how to check if string is double or not in java, look at a few solutions of other members of the community or add your own solution, question.