You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web]: Clarification in https://dev.java/learn/lambdas/writing-comparators/ #53
In the section Implementing a Comparator with a Lambda Expression. it says:
You may have noticed that this lambda expression can also be written with a very nice bound method reference in that way: Comparator<Integer> comparator = Integer::compare;
I think the Integer.compare() method is not bound on an object but rather is a class method of Integer reference type. I'm not sure if I'm correct.
Activity
JosePaumard commentedon Jun 30, 2026
Thank you for your report! A fix is on its way.