public static boolean isNumber(String value){ String re = "^[0-9]+.?[0-9]*$"; return value.matches(re); }