So I want to collect specific data from a list to get the elements I want but don't know how to approach that. I have already curated list of information that has matching index throughout all 4 list so for example the parent class is Ice cream. One list is for icecream name, color, availability( Common or Not Common), and Review (Good or Bad). So the list look like List 1: Names - Rocky Road[0], List2: color - brown[0], List3: availability - Common [0], and List4: Review - Good [0]. (IDK if that wasn't already clear.)
I want to create a code that can tell me an Icecream's name, color, availability, and review but only with my asked condition. So I would ask for "green" icecreams and so it would print out the amount of green icecreams, the names, availability, and review. Any type of advice would be appreciated Thank you.
I've tried scanner methods and get methods but don't know how to implement them to a condition to get a specific element from a list. So far I've had to manually insert information I want to print via method.add(
String) with a scanner class. And I'm looking more for a data collect then sort program.
I understand this is an extensive project and I would appreciate any help. So even an explanation/ list of what you think could work would help because I don't know where to start, Thanks.
edit: I should have made it clear the list are list in 4 separate files that were part of a template I made.