首页>代码> java 18位身份证验证小组件idchecker>/idchecker/src/cn/idchecker/test/TestChecker.java
package cn.idchecker.test;
import cn.idchecker.check.Checker;
/**
 * idchecker测试
 * @author rongxinhua
 *
 */
public class TestChecker {

	public static void main(String[] args) {
		Checker checker = new Checker("440106198607101455");
		System.out.println("出生年月日  : " + checker.getBirth());
		System.out.println("性别  :" + checker.getSex());
		System.out.println("居民地址  : " + checker.getAddr());
		System.out.println("身份证号码是否合法 : " + checker.check() + "  " + checker.getErrorMsg());
		checker.checkAll();	
		for(String msg : checker.getErrorMsgs()) {
			System.out.print(msg + " | ");
		}
	}

}
最近下载更多
aaaabbbc  LV1 2022年5月24日
zzs269285304  LV7 2020年10月29日
gww666  LV2 2019年6月5日
dongzhan  LV12 2019年5月6日
张老师123456  LV7 2019年4月12日
安宇12345  LV15 2019年3月25日
yu7510  LV15 2019年1月15日
依然在路上  LV17 2019年1月2日
安安an  LV17 2018年11月28日
huangqiwei  LV1 2018年10月13日
最近浏览更多
ClydeSon  LV5 2023年12月28日
一起加油  LV4 2023年3月24日
eddie2260  LV2 2022年6月17日
微微笑的笑笑  LV3 2022年6月14日
miiiji 2022年6月10日
暂无贡献等级
aaaabbbc  LV1 2022年5月24日
1306878374  LV13 2021年12月26日
zhaoxu123123  LV10 2021年9月9日
zzs269285304  LV7 2020年10月29日
Airavso  LV3 2020年7月26日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友