I am building a type of game (at least what it is now) ... and basically, I want someone to play a game to enter the province (yes, I'm Canadian) and its capital and to tell them if they did it right.
Out.,
array1[ ] = {ontario, manitoba, saskatchewan};
array2[ ] = {toronto, winnipeg, regina};
I want to encode it so that if component 1 of array 1 is equal to component 1 of array2, it is correct. Sorry, I'm kind of new to java and this site.
source
share