I'm building a program where users need to click on polygons in a certain order to be correct (the polygons are fashioned like "strokes" that make up a Japanese Kanji character), each polygon is numbered and when clicked on the number goes into an arrayList. When all the polygons have been clicked, the numbers in the arrayList would be compared with an array that has the correct sequence of numbers for that particular Kanji.
After some online searching I've found ways to compare elements in two arrays with each other and the same for elements in the arrayLists, but nothing on comparing elements of an arrayList with an array.
Does anyone know a way of doing it? Thanks.