try this:
private boolean isNumeric(String checkStr){
try{
Integer.parseInt(checkStr);
return true; //Did not throw, must be a number
}catch(NumberFormatException err){
return false; //Threw, So is not a number
}
}
Suppose you could do same with Double, Float etc
Steve
"Libra Blue" <li********@hotmail.com> wrote in message
news:7f**************************@posting.google.c om...
I have a string in a variable, but I want to check if this string is a
group of characters or actually an integer/double/etc..
Any idea how this should be done??
Libra Blue