0

compare vs equals

When do i use comparator/Comparable and when do i use equals to compare classes?

19th Jan 2021, 9:28 AM
Manfred h
1 Respuesta
+ 1
Sanoj Why do you want to compare class? You can see here to use different methods for comparison. https://code.sololearn.com/cZms6c3vg2w3/?ref=app
19th Jan 2021, 10:17 AM
A͢J
A͢J - avatar