i am new to java and i have to solve 1 query.

Please anybody help me

Create a function named loadQueryResults() exists that will, when assigned as the value of an array variable, load the results of the following query into that array:
"SELECT name from users"
a) Write code that will use the function to load the results of the query to an array, and echo to the screen the number of users with a name value of "Francois".