On 4/22/21 12:14 AM, Stephen Colebourne wrote:
public interface Collection<E> .... {

          default E getFirst() { return iterator().next(); }


Searching for ".iterator().next()" yields 74 matches in JDK sources...


Peter


Reply via email to