Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: Java Code required to Identify Incoming data is Alphanumeric or not

$
0
0

Got the code.

 

String str="123f";

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

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

  }

  else {

      System.out.println("alphanumeric");

  }

 

thanks


Viewing all articles
Browse latest Browse all 9236

Trending Articles