📜  android 代码获取arrayList 索引 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.958000             🧑  作者: Mango

代码示例1
private ArrayList _categories; // Initialize all this stuff

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