I have a string which contains alphanumeric character.
I need to check whether the string is started with number.
Thanks,
This should work:
String s = "123foo"; Character.isDigit(s.charAt(0));