Possible Duplicate:
List Index Search
I have to get index in an int[] where value would be the same and thus I have to get all the index num for the same value in the int[].
ex.
int[] xx = {4,5,4,3,2}
I am using
Array.indexOf(xx, 4);
it will return 0 but I want to get 0, and 2.