Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.regex.Pattern; public class Main { private static boolean isDouble(String number) { return Pattern.matches("\\d+\\.\\d+", number); } }