Convert String to date in Java

Convert string to date in java is popular case that we have to process in java projects. This tutorial shows you a complete example to demo this case and package this string to date conversion to utility function. Here is complete program for converting string to date

Run above main and output will be … Read moreConvert String to date in Java

How to sort Hashmap by key in Java

This tutorial shows you how to sort hashmap by key in java using java.util.TreeMap. Beside it also shows how to sort a hashmap in Ascending or Descending order by key or value using a custom Comparator and Java 8 Lambda expression. Sorted HashMap By Key Example You sort a java.util.HashMap by putting all the entries … Read moreHow to sort Hashmap by key in Java

Please share it if you found this useful
Hide Buttons