Skip to content
Advertisement

How can I print or put to some HashMap or anything else my result of query?

I have an SQL query in the following Java Code:

When I execute this code, I don’t see anything in the console.

I want to put the results to a Hashmap or print them to see the values, at least.

How can I implement printing to the console or storing the results in a Map?

Advertisement

Answer

It would really help to know the column information (labels, amount, types), but maybe, you can do what you want having the following code as a hint or template and reading the comments carefully:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement