Комментарии:
How to sort reverse using comparing method
Ответитьsir can we sort the list of number without using sorted method by using stream api in java
ОтветитьWhile sorting why do you want to downcast Long to int? Either while declaring the field you should have made it as int or proceed with logic for Long which is a much better real time example
ОтветитьGreat work sir , I admire your ability to give motivation for examples and follow through steps of why this way is better than alternatives
Ответитьwow its superb :)
Ответитьyou are really doing great things. I was watching a guy who was really idiot. called amigo. something. But mate you are really doing good things thanks.
ОтветитьSimple explanation and easy to understand. Thank you very much.
ОтветитьThank you so much
ОтветитьThanks for the Tutorial.
In Java 11 i am unable to call getter and setter methods in comparing method like below:
listEmployee.stream().sorted(Comparator.comparing(emp->emp.getName)
Could you please help me with this.
Commendable job
ОтветитьThanks
ОтветитьThank you! You are a great Teacher
ОтветитьGreat
ОтветитьHii vasant, how will we do customized sorting in descending order using method reference ? (Comparator.comparing(Employee::getName)). This will give me sorting in ascending order but i want in descending order.
ОтветитьPerfect example bro. keep it up.
ОтветитьGreat video. Thank you very much.
Here is what I do for a list of objects:
employees.sort(Comparator.comparing(Employee::getSalary));
employees.sort(Comparator.comparing(Employee::getSalary).reversed());
Super super
ОтветитьThanks for another useful tutorial
Ответитьwriting comment from terminal
Ответитьwriting comment from UI
ОтветитьgetName method is not static method. It is instance method. So, how you can call it by Class reference method?
ОтветитьAll the topics very nice sir
ОтветитьNice video, keep uploading useful videos related to Java. Thanks
ОтветитьWell explained. Thanks
ОтветитьHats off to you for making life easier👍🏻
ОтветитьWow man... I'm doing your programming series one by one every day... This is day #7.. Thanks a lot bro. Awesome tutorial !!!
ОтветитьHii vasant, how will we do customized sorting in descending order using method reference ? (Comparator.comparing(Employee::getName)). This will give me sorting in ascending order but i want in descending order.
Or i want sorting based on length of employee name, how will do using stream api ?
Thanks.
Super JT
Ответитьhow to sort on custom two fields like with name and salary both at a time
ОтветитьAwesome explanation. Thanks Basant.
ОтветитьVery good tutorial. It helped me. But one question, at the comparing example, it is sorting ascending by default. If I need to do, descending as well, how to achieve that?
ОтветитьYou deserve more subscription..I am doing that..Thanks man for going through the basis and connecting dots.
ОтветитьSir, when I am doing shorting I want new shorted list, How to achieve this?
ОтветитьNicely explained..Great.
ОтветитьThank you so much
ОтветитьThe most simplistic and to the point explanation, you made my day! Thanks a lot! You deserve to be subscribed to!
ОтветитьThanks!!
ОтветитьExcellent Bro... I'm very satisfied with this explanation.. Thanks a lot and keep posting videos...
Ответитьthnks why u are overriding equals and hashcode for custom employee
ОтветитьCould you please explain more about method reference ?
ОтветитьThanks ! nicely explained .
ОтветитьThanks...
ОтветитьCan u detailed explanation for method reference
ОтветитьSuperbbbb
ОтветитьGreat java 8 playlist video 👍👍👍👍
ОтветитьNice explanation bro
Can you share the Java 8 features example codes