title: How to get data from a specific row in using a ResultSet object?
body: <p>I have a <code>ResultSet</code> object which returns n* number of rows, and so now I want to get a specific row defined by me from that n number of records. If I can get last row only, that would do.</p>
  
  <pre><code>while(rs.next()){
    if(rs.last()){   
      double tempTotal = rs.getDouble("openingBalance");      
    }
  }
  </code></pre>