title: display timestamp value in java from database
body: <p>the value of date in database is
  2011-03-19 18:49:04</p>
  
  <pre><code>Timestamp date;
  ResultSet rs=smt.executeQuery("select * from posttopic where name='"+logn+"'");
  while(rs.next()){
      name=rs.getString(1);
      title=rs.getString(2);
      subject=rs.getString(3);
      message=rs.getString(4);
      date=rs.getTimestamp(5);
      System.out.print(date);
  }
  </code></pre>
  
  <p>the value of date the the above function is returning is 2011-03-19 18:49:04.0.</p>
  
  <p>Why it is appending .0 at the end?How to remove it?</p>