How to verify PAN card?

前端 未结 15 1383
予麋鹿
予麋鹿 2021-02-13 11:46

How to check the validation of edittext for pan card like \"ABCDE1234F\". I am confused how to check the the validation for this. Please help me guys. I will appreciate any kind

15条回答
  •  梦毁少年i
    2021-02-13 12:16

    Very simple using simple concept.

    long l = System.currentTimeMillis();
    
    String s = l + "";
    String s2 = "";
    
    System.out.println(s.length());
    
    for (int i = s.length() - 1; i > 8; i--) {
        s2+=s.charAt(i);
    } 
    
    String pancardNo = "AVIPJ" + s2 + "K";
    System.out.println(pancardNo);
    

    Use this unique pancard no for testing purpose .

提交回复
热议问题