Once have a look at the part of my GUI
Once a user selects a particular branch from the branch JComboBox, i have to query the database and get all the years applicable to that branch and add those years to the next JComboBox year and so forth. There is quite a bit of chance for the user to swap between his selection of branch, and i would find myself querying the database the same query again each time he changes his option, and it is highly unlikely that the data in the database is going to change in between these swapping.... So i decided that i store these in some data structure, what is the best choice i have for one such datastructure? there may be 2 to 3 different branches, 4 to 6 different years and so on.....
What is my best choice?