Hi all, this simple code to check number that I wrote with java code.
public boolean isNumeric(String st){
try{
double d = Double.parseDouble(st);
}catch(NumberFormatException e){
return false;
}
return true;
}
Please enjoy and sharing your ideas!
No comments:
Post a Comment