JAVA
2009. 5. 14. 22:46
//JAVA 입력받은 스트링이 숫자이면 true 문자이면 false를 리턴한다.
//JAVA To determine whether numeric or string value
//JAVA 数値か文字かどうかを判別
public static boolean isNumber(String str) {
boolean check = true;
for(int i = 0; i < str.length(); i++) {
if(!Character.isDigit(str.charAt(i)))
check = false;
break;
}// end if
} //end for
return check;
} //isNumber