title: How to split string by 'newline'?
body: <pre><code>BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
  String str
  while ((str =in.readLine()) != null)
  {
       items = str.split("\n");
  }
  in.close();
  </code></pre>
  
  <p>String (str) contains data from a text file like:</p>
  
  <p>January</p>
  
  <p>February</p>
  
  <p>March</p>
  
  <p>etc.</p>
  
  <p>Each word is on ag new line.
  I want to read the string and separate each word on a new line and store into an array of String objects (this would be the variable named 'items').</p>