📅  最后修改于: 2022-03-11 14:59:43.157000             🧑  作者: Mango
public int indexOf(int value)
{
int index = -1;
for (int i = 0; i < size; i++)
{
if (elementData[i] == value)
{
index = i;
}
}
return index;
}