資源簡介
JAVA解析身份證省市自治區直轄市縣級市區等相關代碼,希望大家一起交流學習

代碼片段和文件信息
import?java.util.HashMap;
import?java.util.Map;
public?class?AreaData?{
public?static?Map?provinceCodeMap?=?new?HashMap(34)?{???
????????{???
????????????this.put(“11“?“北京市“);???
????????????this.put(“12“?“天津市“);???
????????????this.put(“13“?“河北省“);???
????????????this.put(“14“?“山西省“);???
????????????this.put(“15“?“內蒙古自治區“);???
????????????this.put(“21“?“遼寧省“);???
????????????this.put(“22“?“吉林省“);???
????????????this.put(“23“?“黑龍江省“);???
????????????this.put(“31“?“上海市“);???
????????????this.put(“32“?“江蘇省“);???
????????????this.put(“33“?“浙江省“);???
????????????this.put(“34“?“安徽省“);???
????????????this.put(“35“?“福建省“);???
????????????this.put(“36“?“江西省“);???
????????????this.put(“37“?“山東省“);???
????????????this.put(“41“?“河南省“);???
????????????this.put(“42“?“湖北省“);???
????????????this.put(“43“?“湖南省“);???
????????????this.put(“44“?“廣東省“);???
????????????this.put(“45“?“廣西省“);???
????????????this.put(“46“?“海南省“);???
????????????this.put(“50“?“重慶市“);???
????????????this.put(“51“?“四川省“);???
????????????this.put(“52“?“貴州省“);???
????????????this.put(“53“?“云南省“);???
????????????this.put(“54“?“西藏自治區“);???
????????????this.put(“61“?“陜西省“);???
????????????this.put(“62“?“甘肅省“);???
????????????this.put(“63“?“青海省“);???
????????????this.put(“64“?“寧夏回族自治區“);???
????????????this.put(“65“?“新疆維吾爾自治區“);???
????????????this.put(“71“?“臺灣省“);???
????????????this.put(“81“?“香港“);???
????????????this.put(“82“?“澳門“);???
????????????this.put(“91“?“國外“);???
????????}???
????};??
????
????public?static?Map?cityCodeMap?=?new?HashMap(500)?{
???? {
???? this.put(“1101““北京市市轄區“);
???? this.put(“1102““北京市市轄縣“);
???? this.put(“1201““天津市市轄區“);
???? this.put(“1202““天津市市轄縣“);
???? this.put(“1301““河北省石家莊市“);
???? this.put(“1302““河北省唐山市“);
???? this.put(“1303““河北省秦皇島市“);
???? this.put(“1304““河北省邯鄲市“);
???? this.put(“1305““河北省邢臺市“);
???? this.put(“1306““河北省保定市“);
???? this.put(“1307““河北省張家口市“);
???? this.put(“1308““河北省承德市“);
???? this.put(“1309““河北省滄洲市“);
???? this.put(“1310““河北省廊坊市“);
???? this.put(“1311““河北省衡水市“);
???? this.put(“1324““河北省保定地區“);
???? this.put(“1330““河北省衡水地區“);
???? this.put(“1401““山西省太原市“);
???? this.put(“1402““山西省大同市“);
???? this.put(“1403““山西省陽泉市“);
???? this.put(“1404““山西省長治市“);
???? this.put(“1405““山西省晉城市“);
???? this.put(“1406““山西省朔州市“);
???? this.put(“1407““山西省晉中市“);
???? this.put(“1408““山西省運城市“);
???? this.put(“1409““山西省忻州市“);
???? this.put(“1410““山西省臨汾市“);
???? this.put(“1411““山西省呂梁市“);
???? this.put(“1422““山西省忻洲地區“);
???? this.put(“1423““山西省呂梁地區“);
???? this.put(“1424““山西省晉中地區“);
???? this.put(“1426““山西省臨汾地區“);
???? this.put(“1427““山西省運城地區“);
???? this.put(“1501““內蒙古呼和浩特市“);
???? this.put(“1502““內蒙古包頭市“);
???? this.put(“1503““內蒙古烏海市“);
???? this.put(“1504““內蒙古赤峰市“);
???? this.put(“1505““內蒙古自治區通遼市“);
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????4964??2019-05-30?23:36??IdcardInfoExtractor.java
?????文件???????12438??2019-05-30?23:25??IdcardValidator.java
?????文件??????263806??2019-05-30?23:32??AreaData.java
評論
共有 條評論