My next step is I want to add a second array that has the names of the fruits, so that on each click the image and correct name come up together.
- Is this best done with a second single array
[]? Or do I want to use a double array[] []? In looking around, I also saw hashMap and was wondering if that’s a choice. - Would I want a second method in the class so I have
display()for the image and a second display method for the word that are connected to the same variable?
Looking for some direction. Thanks!