Does anyone out there know if there is a function for java that basically does the same the as the php function strtr()?
For those of you that don't know what that is it takes 3 strings.
Compares each letter of the first string and based on the other two strings, substitues the appropriate character.
(i.e. first string is "cat", second string may have any number of characters, so we'll say abz54ewt, and the third string would have l32ngcpa. Therefore cat would be turned into cla.
Get what I am saying?? I know I could write this myself, but sticking with the spirit of java, there's no sense reinventing the wheel here if something exists.
For those of you that don't know what that is it takes 3 strings.
Compares each letter of the first string and based on the other two strings, substitues the appropriate character.
(i.e. first string is "cat", second string may have any number of characters, so we'll say abz54ewt, and the third string would have l32ngcpa. Therefore cat would be turned into cla.
Get what I am saying?? I know I could write this myself, but sticking with the spirit of java, there's no sense reinventing the wheel here if something exists.