How to Sort an HashMap by values in Java 8 - Example Tutorial

In the last article, I have shown you how to sort a Map in Java 8 by keys, and today, I'll teach you how to sort a Map by values using Java 8 features e.g. lambda expression, method reference, streams, and new methods added into the java.util.Comparator and Map.Entry classes. In order to sort any Map, like HashMap, Hashtable, LinkedHashMap, TreemMap, or even ConcurrentHashMap, you can first get a set of entries by using the entrySet() method and then you can get the stream by calling the stream() method. The entrySet()  method returns a Set which inherit the stream() method from the java.util.Collection class. Once you got the stream, you can just call the sorted() method which can sort all Map.Entry objects available in Stream using a Comparator.

Grokking Algorithms Review - Best Book to learn Data Structure and Algorithms in Python

Hello guys, I have read many books on data structures and algorithms like Introduction to Algorithms by Thomas H. Corman and Algorithm design manual by Steve S. Skiena, so when I come to know about this book, I thought, just another book on algorithms, but I was wrong. This is not just another book on algorithms but one of the most interesting books you will ever read on Algorithms and Data structure. It doesn't cover all the data structure and algorithms you see in Computer Science but whatever it covers, it does really well and that's what matters most for beginner programmer or Computer Science students.

Top 5 Courses to Pass AWS Certified SysOps Administrator Associate Exam - SOA-C01

Hello guys, I have been talking about AWS certifications for quite some time now and in the past shared how to prepare for AWS Cloud Practitioner, AWS Developer Associate, and AWS Solution architect exam, and today I am going to talking about AWS Certified SysOps Administrator Associate exam. This is probably the hardest associate-level AWS certification and I strongly suggest you appear on this exam after getting AWS Developer and AWS solution Architect exam. Though this is not pre-requisite and if you are working as DevOps engineer, you can directly go for this certification to further boost your credentials, but doing this will improve your chances to pass this certification in very first attempt and save both your time and money. It will also help you to score high which can further boost your Resume.