Here's a sample code:
// Author:Annie the Looney
public class TestString {
public static void main(String[] args) {
String str = "ad12cfg434nxf";
int len = str.length();
char test = ' ';
for(int counter = 0; counter < len; counter++) {
test = str.charAt(counter);
if(Character.isDigit(test)) {
System.out.println(test +"... is a digit");
} else {
System.out.println(test +"... not a digit");
}
}
}
}
***Annie***