Sorting Employees first and last name Using Java Streams || Shyam Sundar
Explanation:
sorted(Comparator.comparing(Employee::getFirstname).thenComparing(Employee::getLastname))
First, it sorts by firstname.
If firstname is the same, it sorts by lastname.
The sorted list is collected back into a list.
The sorted employees are printed.
100 Java Program GitURL:-
https://github.com/shyamsundar624/100JavaProgram.git
HTML Tutorials⬇️⬇️
https://www.youtube.com/watch?v=B29QXXAweiI&list=PLeGsIFGx-8S5W3Xfbb9Z_Zgxjm-KK8kg7
Data Conversion in Java⬇️⬇️
https://www.youtube.com/watch?v=ZPcBK7ZDzcY&list=PLeGsIFGx-8S7KyHR1mfWI3IBEi8qsqHCc
Gmail Tutorials⬇️⬇️
https://www.youtube.com/watch?v=On0sJFSfpBc&list=PLeGsIFGx-8S4kLMPsLsnwkBXm1eXoTfjM
Social Media Tips/Tricks⬇️⬇️
https://www.youtube.com/watch?v=7-QP6GPZ0cw&list=PLeGsIFGx-8S6BWWuLB2CakomaJ8vwEyll
JDBC Tutorials⬇️⬇️
https://www.youtube.com/watch?v=HODLmI0tRW8&list=PLeGsIFGx-8S4HYsjvyRa6EtV0BSSqaZEf
Java basic Program⬇️⬇️
https://www.youtube.com/watch?v=p7YokkQH4rs&list=PLeGsIFGx-8S6Io5xmi1BLSy46LdjILV8j
ArrayList Tutorials⬇️⬇️
https://www.youtube.com/watch?v=8o1L5oArrMA&list=PLeGsIFGx-8S50ImvJvPjQzYtFzYbr9vuR
java technical/interview program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5ck9KJFjHVpk2Km0Ark0q4
java string methodprogram⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5hk6o2Jgp9mPNWiciCRIi1
java swing program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S7DDTWnjyOVkGdAZDRbVXmL
java pattern porgram⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S6gdqmZwTk2Zf0hv0aJ41XU
java matrix program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5f85-oEqpVBCInpwVSU2DY
follow us on social media:-
⏬instagram:-
https://www.instagram.com/shyamsundar624/
⏬Telegram:-
https://t.me/SSTech624
⏬Twitter:-
https://twitter.com/shyamsundar624?s=09
⏬Facebook page
https://www.facebook.com/shyamsundar624/
⏬LinkedIn:-
https://www.linkedin.com/in/shyam-sundar-yadav-747884192
Видео Sorting Employees first and last name Using Java Streams || Shyam Sundar канала Programming By Shyam Sundar
sorted(Comparator.comparing(Employee::getFirstname).thenComparing(Employee::getLastname))
First, it sorts by firstname.
If firstname is the same, it sorts by lastname.
The sorted list is collected back into a list.
The sorted employees are printed.
100 Java Program GitURL:-
https://github.com/shyamsundar624/100JavaProgram.git
HTML Tutorials⬇️⬇️
https://www.youtube.com/watch?v=B29QXXAweiI&list=PLeGsIFGx-8S5W3Xfbb9Z_Zgxjm-KK8kg7
Data Conversion in Java⬇️⬇️
https://www.youtube.com/watch?v=ZPcBK7ZDzcY&list=PLeGsIFGx-8S7KyHR1mfWI3IBEi8qsqHCc
Gmail Tutorials⬇️⬇️
https://www.youtube.com/watch?v=On0sJFSfpBc&list=PLeGsIFGx-8S4kLMPsLsnwkBXm1eXoTfjM
Social Media Tips/Tricks⬇️⬇️
https://www.youtube.com/watch?v=7-QP6GPZ0cw&list=PLeGsIFGx-8S6BWWuLB2CakomaJ8vwEyll
JDBC Tutorials⬇️⬇️
https://www.youtube.com/watch?v=HODLmI0tRW8&list=PLeGsIFGx-8S4HYsjvyRa6EtV0BSSqaZEf
Java basic Program⬇️⬇️
https://www.youtube.com/watch?v=p7YokkQH4rs&list=PLeGsIFGx-8S6Io5xmi1BLSy46LdjILV8j
ArrayList Tutorials⬇️⬇️
https://www.youtube.com/watch?v=8o1L5oArrMA&list=PLeGsIFGx-8S50ImvJvPjQzYtFzYbr9vuR
java technical/interview program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5ck9KJFjHVpk2Km0Ark0q4
java string methodprogram⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5hk6o2Jgp9mPNWiciCRIi1
java swing program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S7DDTWnjyOVkGdAZDRbVXmL
java pattern porgram⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S6gdqmZwTk2Zf0hv0aJ41XU
java matrix program⬇️⬇️
https://www.youtube.com/playlist?list=PLeGsIFGx-8S5f85-oEqpVBCInpwVSU2DY
follow us on social media:-
⏬instagram:-
https://www.instagram.com/shyamsundar624/
⏬Telegram:-
https://t.me/SSTech624
⏬Twitter:-
https://twitter.com/shyamsundar624?s=09
⏬Facebook page
https://www.facebook.com/shyamsundar624/
⏬LinkedIn:-
https://www.linkedin.com/in/shyam-sundar-yadav-747884192
Видео Sorting Employees first and last name Using Java Streams || Shyam Sundar канала Programming By Shyam Sundar
java programs java programming java tutorial map in java with example java tutorial for beginners with examples java interview question java interview program java interview question with answer sort employee list by name using java 8 stream api sorting using stream in java 8 java 8 streams streams in java 8 java stream api longest string using stream java 8 stream api employee example Sorting Employees first and last name Using Java Streams
Комментарии отсутствуют
Информация о видео
21 марта 2025 г. 7:33:41
00:04:17
Другие видео канала