Kode Android Dapatkan Indeks ArrayList

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

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