Your explanation was simple and clear. What I was trying to figure out in 1 hour , you did in 5 minutes. Mind Blowing!
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!
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.
Nice clear, concise and quick explanation!
Super easy to understand because of this video. Thank you!
This helped out a ton, thank you!
Nice explanation, keep the good work
Usefull and concise. Thank you:)
It was very clear thanks lot 🙌
Thanks for the help, it was really useful!
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
Alternatively for line 51, you can call the method arr.sort(null) and you'll accomplish the same.
Thanks man, this helped a lot!
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.
Genius !
good vid :)
good video but you forgot to add the equals() method
Why did you only write the get id method and not the get name?
Excellent!
@javacodingcommunity