Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 사업자 번호 유효성 검사 | |
* Created by Hanson on 2017-07-04. | |
*/ | |
public class CRNValidator { | |
private final static int[] LOGIC_NUM = {1, 3, 7, 1, 3, 7, 1, 3, 5, 1}; | |
public final static boolean isValid(String regNum) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 주민등록번호 유효성 검사 | |
* Created by Hanson on 2017-07-04. | |
*/ | |
public class RRNValidator { | |
private final static int[] LOGIC_NUM = {2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5}; | |
public final static boolean isValid(String regNum) { | |
if (!isNumeric(regNum) || regNum.length() != 13) |