All characters have ascii code (including "special"), so you could you use them if you like, but I'm not sure why.
Maybe you could put all yours "special" character in one array, and then compare every member of array with every character of your string.
Or maybe combined method isLetter() and isDigit() of Character class (if you want only letters and digits).
Joined: Jul 16, 2008
i succeeded in my task by using Character class