How to convert a local string to English
My task is to create a method to convert a string (one word which is actually a code with no meaning) in a local language to English string (one word, also a code). The conversion should be performed as follows: Each letters in the locale word should be replaced by an English letter. For each letter in the local language I assign a corresponding (fixed) letter of the English alphabet. In summery: The method should produce English codes from local language codes. Any suggestions, as to how to do the task or where I can find help or tutorial for doing it, would be appreciated.
[588 byte] By [
mehappya] at [2007-10-1 8:33:35]

In the Java API String documentation, at:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html
look at the following methods:
String replaceAll(String regex, String replacement)
Replaces each substring of this string that matches the given regular expression with the given replacement.
String replaceFirst(String regex, String replacement)
Replaces the first substring of this string that matches the given regular expression with the given replacement.
Another possibility is to use StringBuffer(jdk1.4.2) / StringBuilder(jdk1.5.0).
?{?
Thank you very much, sharkura, your help is appreciated ! Task accomplished with method replace(char oldChar, char newChar)