Sorry for not clearly the title, i’m still new to this and even English.
Collections.sort(aList, (s1, s2) -> Float.compare(s1.getAFloat(), s2.getAFloat()));
As above, can I use method references? if
Floats and they don’t use get-a-float method then things become easier:
s1.getAFloat() I don’t know how to use method reference or even possible to use it, thanks for answer!