I need some help with Java code.
I have an array of 10 elements. I want to compare the first element, ie. array[0] to array[1], array[2], ... array[9]. If I find any elements that are equal to array[0] then I perform some actions. I then need to compare array[1] to array[2], array[3],...array[9] and find if array[1] is equal to something and so on. I really can't figure this out, and I am stuck. Can someone help me.