📅  最后修改于: 2022-03-11 14:56:51.800000             🧑  作者: Mango
代码示例1
int index = 0;
while (!element.equals(sortedList.get(index))
&& sortedList.size() > ++index);
return index < sortedList.size() ? index : -1;