editing a string using BufferedReader in Java
<p>Exception handling aside, I'm using the following to input a line of text in Java:</p>

<pre><code>BufferedReader strin = new BufferedReader(new InputStreamReader(System.in));
String txt = null;
txt = strin.readLine();
</code></pre>

<p>However, I want to be able to edit an existing string, so that if txt were initialized to "hello" instead of null, then the readLine() would have the "hello" text in the buffer for me to edit.</p>

<p>I can't see how to do this. Any help would be appreciated.</p>
