๋ฐ์ํ
public static boolean isNumeric(String s) {
try {
Double.parseDouble(s);
return true;
} catch(NumberFormatException e) {
return false;
}
}
String s ;
boolean chk = isNumeric( s );
๋ฐ์ํ
๋ฐ์ํ
public static boolean isNumeric(String s) {
try {
Double.parseDouble(s);
return true;
} catch(NumberFormatException e) {
return false;
}
}
String s ;
boolean chk = isNumeric( s );
๋ฐ์ํ