Calculate difference between two dates in Java
This post will discuss how to calculate the difference between two dates in Java.
Ace your Coding Interview
Get hired by top tech companies with our comprehensive interview preparation.
Get StartedThis post will discuss how to calculate the difference between two dates in Java.
In this post, we would like to point out a bug in Java Stack class that causes stack elements to be printed in FIFO order instead of the expected LILO order.
This post will discuss several ways to sort the list in ascending order in Java. Assume the specified list is modifiable but not necessarily resizable.
This post will discuss how to generate random integers between the specified range in Java.
This post will discuss how to convert an Iterable to a Collection in Java.
This post will discuss how to capitalize the first character of each word in a given text in Java.
This post provides an overview of for loop and enhanced for loop (for-each loop) in Java.
This post will discuss the major difference between ConcurrentHashMap and HashTable classes, and Collections.synchronizedMap() method in Java.
This post will discuss various methods to print out all keys and values from a map in Java.
This post will discuss several ways to sort a list in reverse order in Java. The given list is modifiable but not necessarily resizable.
This post will discuss how to remove elements from a mutable list in Java that satisfies the given predicate. Fail Fast Iterator vs Fail Safe Iterator in Java It is not allowed to modify a list (add elements to it, remove elements from it, etc.) while iterating over it; otherwise, a ConcurrentModificationException will be […]
The java.security.SecureRandom is a more secure version of java.util.Random, which provides a Cryptographically Secure Pseudo-Random Number Generator (CSPRNG) in Java.