title: How split "\n" from user input?
body: <p>Can anyone tell me why this is working well:</p>
  
  <pre><code>String wanttosplit = "asdf...23\n..asd12";
  String[] i = wanttosplit.split("\n");
  output are:
  i[0] = asdf...23
  i[1] = ..asd12
  </code></pre>
  
  <p>When i want to get the data from user like:</p>
  
  <pre><code>import java.util.Scanner;
  Scanner scan = new Scanner(System.in);
  String wanttosplit = scan.next(); //user enter asdf...23\n..asd12 on the       keyboard
  String[] i = wanttosplit.split("\n");
  output are:
  i[0] = asdf...23\n..asd12
  </code></pre>
  
  <p>Why it didnt split like in first example?</p>