cancel
Showing results for 
Search instead for 
Did you mean: 

Java Code required to Identify Incoming data is Alphanumeric or not

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

Kindly share your thoughts or code to identify wheter Incoming data is alphanumeric or not.

Regards,

Mani

Accepted Solutions (1)

Accepted Solutions (1)

manikandan_shanmugam3
Active Participant
0 Kudos

Got the code.

String str="123f";

  if (str.matches("[z0-9]*")) {

      System.out.println("Not alphanumeric");

  }

  else {

      System.out.println("alphanumeric");

  }

thanks

Answers (0)