title: error: cannot find symbol resultset
body: <p>I am really stuck at this...I am trying to convert Result Set into string and this is my code :</p>
  
  <pre><code>QueryExecution qExec = QueryExecutionFactory.create(s, ds) ;
         ResultSet rs = qExec.execSelect() ;
         //String x=rs.toString();
         String[] arr = null;
  
          while (rs.next()) {
              String em = (String)rs.getString(0);
             arr = em.split("\n");
             for (int i =0; i &lt; arr.length; i++){
                subjectoutput.setText(arr[i]); 
             }
         }
  </code></pre>
  
  <p>and it gives error:</p>
  
  <pre><code>JavaApplication2.java:137: error: incompatible types
              while (rs.next()) {
                            ^
    required: boolean
    found:    QuerySolution
  JavaApplication2.java:138: error: cannot find symbol
                  String em = (String)rs.getString(0);
                                        ^
    symbol:   method getString(int)
    location: variable rs of type ResultSet
  2 errors
  </code></pre>
  
  <p>my query result is this:</p>
  
  <pre><code>    ----------------------------
  | x                                           
  ================================================
  | &lt;&lt;SEMA-CR-3-4MHV9RJ@bounce.oracle-mail.com&gt;&gt; |
  ------------------------------------------------
  </code></pre>