How to verify the validity of ID number using JAVA
Article Introduction:1. Structure and form of ID cards. Common ID numbers include 15-digit and 18-digit ID numbers; the meanings of the 15-digit ID numbers: 1. 1-2 digits of province, autonomous region, and municipality codes; 2. 3-4 digits. Prefecture-level city, league, autonomous prefecture code; 3, 5-6 digits county, county-level city, district code; 4, 7-12 digits date of birth, for example, 670401 represents April 1, 1967, and the 18th digit One difference; digits 5 and 13-15 are sequence numbers, of which 15 digits are odd numbers for men and even numbers for women; the meaning of each 18-digit ID number: 1, 1-2 digits represent the province (autonomous region, municipality directly under the Central Government, special administrative region) ). 2. The 3-4 digits represent the city (the summary code of the municipal districts and counties of regions, autonomous prefectures, leagues and national municipalities). Among them, 01-
2023-04-17
comment 0
1245