I was just wondering whether or not there is a way to make a java method return multiple values.
I am creating an application that uses the jdbc library to work with a database. Now, i can successfully enter values into the database but now i just need a way to return them and this is where im a bit stuck. I creating a form where the user enters a specific value (an ID number) which is then passed to by Database class which carries out my database work.
Database newQuery = new Database();
newQuery.getCust(c_ID); //uses the GetCust method in my class,
//passing it the ID of the customer.
now the getCust() method in my Database class creates the following query:
ResultSet Customer = stat.executeQuery("SELECT * FROM Persons WHERE Cust_ID=C_ID");
Now i just need a way to return the results that are stored in Customer back, Any Ideas?