[Solved] SQL Query result to Java Array [closed]
It would basically go something like this: ResultSet rs = statement.executeQuery(yourSQLQueryString); // Get your ResultSet from Database rs.last(); // Place the record pointer onto the last row int counter = res.getRow(); // Get the row number (there’s your count) rs.first(); // Place the record pointer onto the first row for the while loop String[] myArray … Read more