title: java \n is printed, should break line?
body: <p>I have a string that when it see's <code>\n</code> it should break line. However when I print it too screen it actually shows the \n as characters.</p>
  
  <ol>
  <li><p>My file has a line such as q1. what is your name? <code>\n</code> a.bob <code>\n</code> b.jim</p></li>
  <li><p>I then store that result into a String when its read from the file</p></li>
  <li><p>I then send it over RMI to a client which it is then displayed. It should be</p>
  
  <p>q1. what is your name?</p>
  
  <pre><code>a. bob
  b. jim
  </code></pre></li>
  </ol>
  
  <p>However it all is printed on one line exactly how it is in the file.</p>
  
  <p>code of it reading from file and returning back to client</p>
  
  <pre><code>    String [] line = new String [10];
              try 
              {
                  int i =0;
                  for (i=0;i&lt;=9;i++)
                  {
                      line[i] = "";
                  }
                  Scanner scanner = new Scanner(new File("questions.txt"));
                  scanner.useDelimiter("Q");
                  i=0;
                  while (scanner.hasNext()) 
                  {
                      line[i] = scanner.next();
                      //System.out.println("" + line[i]);
                      i++;
                  }
              }
  return line[0]; //return string back to client
  </code></pre>