I'm constructing a type of game (at least that's what it is right now...) and basically, I want whoever is playing the game to enter a province (yes I'm Canadian) and its capital and the program to tell them if they did so correctly.
Ex.,
array1[ ] = {ontario, manitoba, saskatchewan};
array2[ ] = {toronto, winnipeg, regina};
I want to code it in such a way that if component 1 of array1 is equal to component 1 of array2, it's correct. Sorry, I'm kind of new to java and this site.