Periksa di mana nilai positon ada di arraylist java

private ArrayList<String> _categories; // Initialize all this stuff

private int getCategoryPos(String category) {
  return _categories.indexOf(category);
}
Magnificent Mole