public static boolean isNumeric(String string)
{
try
{
double d = Double.parseDouble(string);
}
catch(NumberFormatException e)
{
return false;
}
return true;
}
public static boolean isNumeric(String string)
{
try
{
double d = Double.parseDouble(string);
}
catch(NumberFormatException e)
{
return false;
}
return true;
}
Comments
Post a Comment