Java : How to Compare two Sets and check its Equality efficiently
This tutorial explains the best and efficient way to compare two sets and equality using containsAll() and equals() method of Set interface. let’s look at the example below.
This tutorial explains the best and efficient way to compare two sets and equality using containsAll() and equals() method of Set interface. let’s look at the example below.
This tutorial explains you how to find first element from collection like List or Set using Java 8 streams findFirst(), iterator() and listIterator methods.
This tutorial explains how to add hours to unix timestamp or epochmilli using TimeUnit in Java. You may face situations like adding hours, minutes and seconds to an timestamp for display purpose in UI. Let’s see how to do that.
This tutorial explains the difference between ApplicationContext and BeanFactory interfaces. On high level, BeanFactory is the root interface used for accessing Spring bean container and ApplicationContext is the central interface used to provide configuration for an application. ApplicationContext interface is… Read More!
Let’s say you wanted to format LocalDate like yyyyMMdd with date’s month and day values in double digit to String or int, then follow this tutorial.