How can I find an index of a certain value in a Java array of type int?
int
I tried using Arrays.binarySearch on my unsorted array, it only som
Arrays.binarySearch
You can either walk through the array until you find the index you're looking for, or use a List instead. Note that you can transform the array into a list with asList().
List