This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(R. Hendricks 112) int index = 0; | |
(R. Hendricks 113) while (!element.equals(sortedList.get(index)) | |
(R. Hendricks 114) && sortedList.size() > ++index); | |
(R. Hendricks 115) return index < sortedList.size() ? index : -1; |