php strtr equivalent in java
<p>Is there a function in Java which is equivalent to php's <code>strtr</code>?</p>

<pre><code>string strtr ( string $str , string $from , string $to )
</code></pre>

<p>If given three arguments, <code>strtr</code> function returns a copy of string where all occurrences of each (single-byte) character in <code>$from</code> have been translated to the corresponding character in <code>$to</code>, i.e., every occurrence of <code>$from[$n]</code> has been replaced with <code>$to[$n]</code>, where <code>$n</code> is a valid offset in both arguments. </p>
