Skip to content
Advertisement

Save a Resultset to an Array in java

I want to save the result of a whole Mysql table in an array

JavaScript

it returns this to me from the database

run: brandon Brandon Julio

Daniel
BUILD SUCCESSFUL (total time: 1 second)

I want to save what is in the database in an array to be able to implement it with a sort and search method

JavaScript

that’s why I need to save it in an array

I would appreciate any criticism or help as you do not have an idea, thank you

Advertisement

Answer

You can use a List.

JavaScript
Advertisement