checking

Hi, I want to check if a given string contains numbers or alphabets, is there anyway to go this using JSP codes?
[126 byte] By [des_xu] at [2007-9-26 2:03:57]
# 1
You could turn the String into a char array using the String.getChars() method, and then loop through the char array and test each character with the Character.isLetter() method. Probably not the most efficient way to do it.-Derek
beattris at 2007-6-29 8:47:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...