2016.04.22 / 17:26
¼ýÀÚ Ã¼Å© ÇÔ¼ö
Kiri
Ãßõ ¼ö 389
public boolean NumberChk(String str){ char c = ''; if(str.equals("")) return false; for(int i = 0 ; i < str.length() ; i++){ c = str.charAt(i); if(c < 48 || c > 59){ return false; } } return true; }
Ãâó : http://shiinatsu.shnet.kr/?p=61
¡Ø if(c < 48 || c > 59) À̺κп¡¼ ¼ýÀÚ´Â c > 57 ÀÌ µÇ¾î¾ß ¸ÂÀ»µíÇÏ´Ù
¾Æ½ºÅ° Äڵ忡¼ ¼ýÀÚ´Â 48~57 À̴ϱî..[Ãâó] ¼ýÀÚ Ã¼Å© ÇÔ¼ö|ÀÛ¼ºÀÚ À©µå±º