Home core java

core java

How to get current Date Time in java 8

A new date time api added in Java 8 in java.time package. In this tutorial we have covered examples to get...

How to compare dates in Java 8

In this article you will see several examples on how to compare dates in Java 8 and prior to Java 8. A...

A guide to Java BiConsumer + Examples

Java BiConsumer is a built-in Functional interface in java, represents an operation that accepts two input arguments and returns no result. This is...

Java BiFunction guide + Examples

Java BiFunction interface is a built in functional interface which accepts two arguments and produces a results. This is a functional interface...

Java BiPredicate guide + Examples

Java BiPredicate represents a Predicate (boolean-valued function) of two arguments and returns boolean value. This is a functional interface and can...

Java ListIterator guide + Examples

Java ListIterator allows the programmers to traverse the list in either direction, modify the list during iteration, and obtain iterator's current position.

java.util.Enumeration interface Examples

The Enumeration interface in Java is used to get elements of Collection one by one. Enumeration is a legacy interface of Collection...

Java Iterator guide + remove elements while iterating examples

A java Iterator interface is used to retrieve elements one by one from any collection implementation, as we can apply Iterator on...

Java 8 identity function – Usage of Function.identity with Examples

Java 8 identity function that Function.identity() returns a Function that always returns it's input argument. In this article we will see...

Java Hashtable complete guide with examples

In this article we will learn what is Java Hashtable, when and how do we use it in Java applications and how...

Java Stack class with examples

1. Java Stack class In Java Stack class is a child class of Vector class in collection framework.

Java Vector class with examples

In this article we are going see what is Java Vector, why do we use Vector in java and its commonly...

How to iterate java map with different examples

In this article we are going to see how to iterate java map in different approaches with simple examples, we will...

Java HashMap complete guide with examples

In this article we will dive into Java HashMap and it’s most commonly used methods with examples. Java HashMap is one of the most commonly...

Java HashSet with examples

In this article we will dive into Java HashSet and it’s most commonly used methods with various examples. Java HashSet is one of the most...

Stay in Touch