Quantcast
Viewing all articles
Browse latest Browse all 8594

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

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 8594

Trending Articles



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