• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can anyone please help me figure out the reason my variables are not being resolved?

 
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create a loop where a user enters a number. The number being entered is supposed to execute a database query and then the user is able to enter another number and execute another query until the number 0 is entered. I am having trouble since I have an error saying ResultSet cannot be resolved and resultset cannot be resolved to a variable. Is anyone able to help me figure out what is causing this to happen? I am not sure what the problem is.



https://pastebin.com/PurybXUJ
 
Saloon Keeper
Posts: 10687
85
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've declared resultset on line 74 which is inside braces and is therefore only local to those specific braces. All other occurrences are in other local scopes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic