Got the code.
String str="123f";
if (str.matches("[z0-9]*")) {
System.out.println("Not alphanumeric");
}
else {
System.out.println("alphanumeric");
}
thanks
Got the code.
String str="123f";
if (str.matches("[z0-9]*")) {
System.out.println("Not alphanumeric");
}
else {
System.out.println("alphanumeric");
}
thanks