title: Java is not treating "\n" as new line when retrieved from Database column
body: <p>I am facing a weird problem.<br>
  What I am doing is I am storing some values in DB(oracle 11g) as <strong>varchar2</strong> and fetching the values in java and working with the fetched data.<br>
  Now I have <strong>\n</strong> as a value in DB and getting it in java using <code>rs.getString()</code>. I am getting proper value <code>\n</code>.<br></p>
  
  <pre><code>String newLine=rs.getString("column_value");
  </code></pre>
  
  <p>Now i parse a HTML page and get the whole page as a string.Suppose the page has 3 lines each depiciting ssome informations like below:</p>
  
  <pre><code>Time: 08 AM - 11 AM
  Duration : 36 minutes
  </code></pre>
  
  <p>Now in code i will pass <strong>"Duration :"</strong> to a method and that will return me "36 minutes".<br>What logic i use is i get the index of <strong>"Duration :"</strong> and read till "\n" is encountered.Code works fine if i declare the newline as</p>
  
  <pre><code>String newLine= "\n";
  </code></pre>
  
  <p>But if i get it from DB it does not work.
  I know i don't need to store this in DB but i don't want to hardcode these items. So i have to store it in DB only. Can anyone help me out in this???</p>