I want to use the below procedure in
java.
But, while i executed query in sql console, it returned 300 records.
while i execute the proc, I am getting the ouput as just "Names: ". The usernames are displaying.
Please let me know, is this a correct way to display output while using query in for loop.