View Single Post
Old May 25th, 2006, 11:53 AM   #12
NSchnarr
Newbie
 
Join Date: May 2006
Posts: 28
Rep Power: 0 NSchnarr is on a distinguished road
I would use a switch statement. read the first letter into a string using the substring method. Compare that in a switch statement to all the pre-defined "1337" characters, it it equals add that corresponding letter to a String. If it does not equal, use two letters (subString(n, n+2)), repeat until there is a match.
I dont see any point to using arrays for this.
NSchnarr is offline   Reply With Quote