title: Lines of JTextArea to an ArrayList<String>
body: <p>How would one convert every line in a <code>JTextArea</code> into an <code>ArrayList&lt;String&gt;</code>? That is, how does one detect line breaks in a JTextArea?</p>
  
  <p>Here is my current pseudo code implementation:</p>
  
  <ul>
  <li>get text from JTextArea</li>
  <li>Go through every char in JTextArea and adds it to a string called currentWord until it finds a line break char //(does such a thing exist?)</li>
  <li>When the loop detects a line break, it adds currentWord to the arrayList and sets currentWord to empty.</li>
  <li>After the loop ends, add currrentWord to the ArrayList.</li>
  </ul>
  
  <p>
  1. Is there an easier way to do this?<br>
  2. Does this implementation scale well with size? (I'm guessing no)</p>