Java : Calculate Leap Year and Number of days in a Year
Below program shows you how to calculate or check if a year is leap year or not and how to check number of days in a year.
Below program shows you how to calculate or check if a year is leap year or not and how to check number of days in a year.
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!