
You're not paying attention to what I said.
The above code
completely ignores the data in the first row that's returned.
If the first println() is printing false, then no data was returned, and that's a separate problem you'll have to work on, but deal with that later.
That code says, "First tell me whether any rows were retrieved, then, if
at least 2 rows were retrieved, print out the 'name' column from the
second row."