Having trouble figuring out the code in order to find the price column for all items in a ArrayList
so far i have:
instance variable code below for ArrayListprivate double calculateSubtotal() { try { myConnection = DriverManager.getConnection(DATABASE_URL); myStatement = myConnection.createStatement(); myResultSet = myStatement.executeQuery("SELECT price FROM menu"); } return 0;
I am not sure if i am going about this the right way or not? if additional info is needed please ask