|
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.
|