For an Android app, I have the following functionality
private ArrayList _categories; // eg [\"horses\",\"camels\"[,etc]] private int getCateg
The best way to find the position of item in the list is by using Collections interface,
Eg,
List sampleList = Arrays.asList(10,45,56,35,6,7); Collections.binarySearch(sampleList, 56);
Output : 2