title: Java - Calling super.toString() to format a resultset
body: <p>I can print my resultset with no problem when querying my database. I need to use super.toString method which is overridden in my super class giving me the format I want the resultset to be displayed in. </p>
  
  <pre><code> res = stmt.executeQuery("Select * from registrar.student ");  
   System.out.println("\nAll records in your table:");  
   while (res.next()) {  
       String data = "";  
       data += res.getString("studentID") + "  "  
            + res.getString("firstName") + " "  
            + res.getString("lastName") + " "  
            + res.getDouble("GPA")+ " "  
            + res.getString("status") + " "  
            + res.getString("mentor") +" "  
            + res.getString("level")+"\n";  
       System.out.println(data); 
  </code></pre>
  
  <p>How can I add <code>super.toString()</code> to format the display of my data?</p>