>>125
String str; が数字だけかどーかを調べるんだったら
try{
 Integer.parseInt(str);
 return true;
}catch(NumberFormatException e){
 return false;
}
とか。例外処理機構使うからアレだけど。