title: Reading a string with new lines from console java
body: <p>I want to read this string (from console not file) for example:</p>
  
  <pre><code>one two three
  four five six
  seven eight nine
  </code></pre>
  
  <p>So I want to read it per line and put every line in an array.
  How can I read it? Because if I use scanner, I can only read one line or one word (nextline or next).</p>
  
  <p>what I mean is to read for example : <code>one two trhee \n four five six \n seven eight nine...</code></p>