[Java] 휴대폰번호 유효성 검사
/** * * XXXX 형식의 휴대폰번호 앞, 중간, 뒤 문자열 3개 입력 받아 유효한 휴대폰번호형식인지 검사 * ex) * isVaildCell("010","123","4567"); * => true * * @param 휴대폰번호 문자열,(3개) * @return 유효한 휴대폰번호 형식인지 여부 (True/False) * @throws Exception */ public static boolean isVaildCell(String cell1, String cell2, String cell3) throws Exception { String[] check = {"010", "011", "016", "017", "018", "019"}; //유효한 휴대폰 첫자리 번호 데이터 String temp = cell..
2017. 1. 28.