This function is to check whether the given parameter is number or not...
public static boolean isNumber(String str){
boolean number=false;
try{
Integer.parseInt(str);
number=true;
}catch(NumberFormatException n){
number=false;
}
return number;
}
Thursday, February 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment