title: How to read second line from a string in java
body: <p>I have a string with multiple lines and I want to read a specific line and save it to an other string. That's my code</p>
  
  <pre><code>String text ="example text line\n
  example text line\n
  example text line\n
  example text line\n
  example text line\n
  example text line\n
  example text line\n";
  
  String textline1="";
  String textline2="";
  </code></pre>
  
  <p>on the above strings textline1 and textline2 I want to save the specific line.</p>