Using java programming, how to display items from the database based on user given choices?