Java replace ascii char
<p>I have a file (prueba.txt) and I would like to replace ascii characters 0xE1 (á) for 0x14, 0xE9 (é) for 0x15, 0xF3 (ó) for 0x16 ... In string is possible with <code>String.replace()</code> but it is a char.</p>

<pre><code>import java.io.File;
import java.util.Scanner;

public class Reemplazar {

    public static void main(String[] args) throws Exception {

        Scanner archivo = new Scanner(new File("prueba.txt"));

            while(archivo.hasNextLine()) {
                String frase = archivo.nextLine();

                for (int i = 0; i &lt; frase.length(); i++) {
                    char current = frase.charAt(i);

                    if  (current == 0xe1) {
                        System.out.println("contiene la á: '"+frase+"'");
                     }

                    if  (current == 0xe9) {
                        System.out.println("contiene es la é: '"+frase+"'");
                    }

                }
          }
     }
}
</code></pre>

<p>I guess this code is much improved, but ...</p>

<p>Greetings.</p>