public static boolean isNumeric(String inputData) { return inputData.matches("[-+]?\\d+(\\.\\d+)?"); }