public static boolean isNumeric(String str) {
if (str != null) {
try {
str = str.trim();
double d = Double.parseDouble(str);
System.out.println(d);
d = d + 1;
return true;
} catch (NumberFormatException e) {
}
}
return false;
}