title: Unable to return value
body: <p>I'm new to spring. Here is my code to return the values from the Access DB file I need to catch the response in my return.   </p>
  
  <p>I tried it in different ways nothing is liking it. </p>
  
  <p>Unable to catch the return from the output of the below code.</p>
  
  <p>I'm running it in my Jdeveloper.</p>
  
  <p>Any ideas will be really appreciated.</p>
  
  <pre><code>    package accessdatatoebs;
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.ResultSet;
  import java.sql.SQLException;
  import java.sql.Statement;
  
  
  public class AccessClass {
          public AccessClass() {
            super();
          }
  
          public static void main(String[] args) {
  
              // variables
              Connection connection = null;
              Statement statement = null;
              ResultSet resultSet = null;
  
              // Step 1: Loading or 
              // registering Oracle JDBC driver class
              try {
                  Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
              }
              catch(ClassNotFoundException cnfex) {
                  System.out.println("Problem in loading"
                          + " MS Access JDBC driver");
                  cnfex.printStackTrace();
              }
  
              // Step 2: Opening database connection
  
                  try {
  
                             String msAccDB = "G:\\RMMDB\\RM.mdb";
                              String dbURL = "jdbc:ucanaccess://" +msAccDB; 
  
                  // Step 2.A: Create and 
                  // get connection using DriverManager class
                  connection = DriverManager.getConnection(dbURL); 
  
                  // Step 2.B: Creating JDBC Statement 
                  statement = connection.createStatement();
  
                  // Step 2.C: Executing SQL and
                  // retrieve data into ResultSet
                  resultSet = statement
                          .executeQuery("SELECT * FROM tbl_Materials");
  
                 // System.out.println("ID\tName\t\t\tAge\tMatches");
                 System.out.println("Material\tAccount");
                  System.out.println("====\t========");
  
                  // processing returned data and printing into console
                  while(resultSet.next()) {
                      System.out.println(resultSet.getInt(1) + "\t" + 
                              resultSet.getString(2) + "\t" + 
                              resultSet.getString(3) + "\t" +
                              resultSet.getString(4));
                  }
              }
  
              catch(SQLException sqlex){
                  sqlex.printStackTrace();
              }
              finally {
                  // Step 3: Closing database connection
                  try {
                      if(null != connection) {
  
                          // cleanup resources, once after processing
                          resultSet.close();
                          statement.close();
  
                          // and then finally close connection
                          connection.close();
                      }
                  }
                  catch (SQLException sqlex) {
                      sqlex.printStackTrace();
                  }
              }
          return resultSet; 
          }
      }
  </code></pre>