title: How do I use System.getProperty("line.separator").toString()?
body: <p>I have a Tab-delimited String (representing a table) that is passed to my method. When I print it to the command line, it appears like a table with rows:</p>
  <p><a href="https://i.stack.imgur.com/2fAyq.gif" rel="nofollow noreferrer">https://i.stack.imgur.com/2fAyq.gif</a></p>
  <p>The command window is correctly buffered. My thinking is that there is definitely a new line character before or after each row.</p>
  <p>My problem is that I want to split up the incoming string into individual strings representing the rows of the table. So far I have:</p>
  <pre><code>private static final String newLine = System.getProperty(&quot;line.separator&quot;).toString();
  private static final String tab = &quot;\t&quot;;
  private static String[] rows;
  ...
  
  rows = tabDelimitedTable.split(newLine);    //problem is here
      
  System.out.println();
  System.out.println(&quot;################### start debug ####################&quot;);
  
  System.out.println((tabDelimitedTable.contains(newLine)) ? &quot;True&quot; : &quot;False&quot;);
      
  System.out.println(&quot;#################### end debug###################&quot;);
  System.out.println();
  </code></pre>
  <p>output:</p>
  <pre><code>################### start debug ####################
  False
  #################### end debug###################
  </code></pre>
  <p>Obviously there is something in the string telling the OS to start a new line. Yet it apparently contains no newline characters.</p>
  <p>Running the latest JDK on Windows XP SP3.</p>
  <p>Any Ideas?</p>