@javacodingcommunity

New video - Comparable Interface vs Comparator Interface
https://youtu.be/kV05T7beMls

@vxxxnni

Your explanation was simple and clear. What I was trying to figure out in 1 hour , you did in 5 minutes. Mind Blowing!

@JoshuaLawrence-wc2yr

Busy practicing for a big practical test I have coming up and this video has been a lifesaver. Straight to the point, clear, and concise. Thank you so much for sharing!

@vanamutt43

thanks mate, finally understand what this is.
i watched several tutorials and my teacher talked about it and finally you made it clear why we need and how we can use it.

@draganjonceski2639

Nice clear, concise and quick explanation!

@altayali7541

Super easy to understand because of this video. Thank you!

@CasualGamerJay

This helped out a ton, thank you!

@sallsu173

Nice explanation, keep the good work

@r_majka

Usefull and concise. Thank you:)

@buraxta_

It was very clear thanks lot 🙌

@kinrev6719

Thanks for the help, it was really useful!

@hans-henrikmadsen2003

Hello, thank you for this video it is a great help for me. I do have one question : how happens if they have same id and you want  the "compare method" to compare on something else instead of setting them equal to each other? like if they have same Id number, you want to compare the name then

@gringotico1759

Alternatively for line 51, you can call the method arr.sort(null) and you'll accomplish the same.

@deli5777

Thanks man, this helped a lot!

@thetruth5672

Great. Awesome. So the Collections.sort(car) method will go and look inside compareTo() method, and see that which values are being compared. here we have id compared and the value 0,1,-1 is returned. and based upon these returned values the collections.sort(car) methods works.

@pollekiller3678

good vid :)

@akna1987

good video but you forgot to add the equals() method

@beanos1.071

Why did you only write the get id method and not the get name?

@davidsanchez-bu9un

Excellent!