How to find a string right after the searched string from a text file using Java?
<p>I have text file in which I have following content.</p>

<pre><code>Name Sahar Hassan
Age 26
</code></pre>

<p>I have wrote a Java code to find the location of the word "Name" and it works fine. I want to output the string right after the word "Name", that is "Sahar Hassan".</p>
