title: Android: Split string by "\n" as string not as new line
body: <p>I have a below string which is coming from the server</p>
  
  <pre><code>String text = "- 30016264\n- 30014837\n- 30014836\n";
  </code></pre>
  
  <p>When I used to split it like this</p>
  
  <pre><code>String[] list = text.split("\n");
  </code></pre>
  
  <p>I got the list like this with length 1</p>
  
  <pre><code>list[0] = "- 30016264\n- 30014837\n- 30014836\n";
  </code></pre>
  
  <p>And when I used to split it like this</p>
  
  <pre><code>String[] list = text.split("\\n");
  </code></pre>
  
  <p>I got the same list like this with length 1</p>
  
  <pre><code>list[0] = "- 30016264\n- 30014837\n- 30014836\n";
  </code></pre>
  
  <p>How do I write the code to split the string on basis of "\n" not the next line?</p>
  
  <p><strong>NOTE:</strong> This string is coming from the server as it is written here and when I use this server string as <code>TextView</code> value, it will display in one single line.</p>