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

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 9730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>