title: Why is this returning "org.apache.derby.client.net.NetResultSet42@1b5f7aa"
body: <p>i am trying to display my database into a text area in java. The code below works however it is showing "org.apache.derby.client.net.NetResultSet42@1b5f7aa" instead of the data. Any Ideas why? and how i can correct this</p>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>public static String listAll() {
      String output = listHeader();
      try {
          ResultSet res = stmt.executeQuery("SELECT * from STUDENT.MESSAGES");
          while (res.next()) { // there is a result
              //output += formatListEntry(res);
              output += res;
              output +=System.lineSeparator();
          }
      } catch (Exception e) {
          System.out.println(e);
          return null;
      }
      return output;
  }
  </code></pre>