public static boolean isNumber(String validString){
byte[] tempbyte=validString.getBytes();
for(int i=0;i<validString.length();i++) {
//by=tempbyte[i];
if((tempbyte[i]==45)&&(i==0)){
continue;}
if((tempbyte[i]<48)||(tempbyte[i]>57)){
return false;
}
}
return true;
}
byte[] tempbyte=validString.getBytes();
for(int i=0;i<validString.length();i++) {
//by=tempbyte[i];
if((tempbyte[i]==45)&&(i==0)){
continue;}
if((tempbyte[i]<48)||(tempbyte[i]>57)){
return false;
}
}
return true;
}