Parsing till end of string and checking for end of line in java
<p>I have the below contents from a .txt file stored into a string variable <strong>actual_text</strong></p>

<p>1 1111 47</p>

<p>2 2222 92</p>

<p>3 3333 81</p>

<p>So now <strong>actual_text</strong> will have the value</p>

<p>1 1111 47</p>

<p>2 2222 92</p>

<p>3 3333 81</p>

<p>I'm trying to achieve two objectives from the below snippet</p>

<pre><code>while(parse till end of string condition)      //parse till the end actual_text
        {
            if(end of line condition)     //checking for the "\n" string in actual_text
            {
                                  //random code 
            }
                }
</code></pre>

<p>Can anyone tell me how to do the parsing and checking the end of line in the above program.</p>
