I have 2 arrays. The first one stores 100 JButtons and the second one stores 4 of those JButtons.
And I want an if-statement that compares one object in Array1 with the 4 objects in Array2.
This is along the lines of how I want it to look…
// r = random number.
if(array1[r] == array2[] )
{
//Do stuff
}
Any method or something I could use to look through every index of array2?