How do I use System.getProperty("line.separator").toString()?
<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="http://i.stack.imgur.com/2fAyq.gif" rel="nofollow">http://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("line.separator").toString();
private static final String tab = "\t";
private static String[] rows;
...

rows = tabDelineatedTable.split(newLine);   //problem is here

System.out.println();
System.out.println("################### start debug ####################");

System.out.println((tabDelineatedTable.contains(newLine)) ? "True" : "False");

System.out.println("#################### end debug###################");
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>

<p>Thanks!</p>

<p>By the way, I do realize that it should be tabDelimitedTable instead of tabDelineatedTable :)       </p>
