Java 8

Recent Tutorial

Java flatMap

In this Java 8 tutorial you can learn about what a flatMap is and in which scenario it can be used. flatMap is an intermediate operation of the Java 8 Stream API. If you are just into Java 8 and streams, I strongly recommend you to go through the linked tutorial to learn about streams […]
Published to Java Tutorial on 04/01/2016.

Temporal Adjuster Example: Second Saturday

For now this is the last example in the temporal adjuster example series. This tutorial is to find second Saturday of a month. Refer the temporal adjuster tutorial and introduction to java 8 date and time API to know more about this topic. Temporal adjuster is a powerful utility. It will be really handy in […]
Published to Java Tutorial on 14/08/2014.

Temporal Adjuster Example: First In Year

If you are reading this temporal adjuster example series, you will find this example to be different from all others. This temporal adjuster is going to take an argument and adjust the value based on the argument passed. For example, given an year what date falls on first Monday. This temporal adjuster takes the DayOfWeek […]
Published to Java Tutorial on 14/08/2014.

Temporal Adjuster Example: Next Prime Hour

We are continuing with the temporal adjuster examples series. Lets see something different with this tutorial. In the previous examples, we saw date based temporal adjusters. In this Java tutorial, let us see a time based temporal adjuster. Given a time, lets adjust it for the next prime hour. The hour where it is a […]
Published to Java Tutorial on 14/08/2014.

Temporal Adjuster Example: Next Leap Year Day

This temporal adjuster topic is very interesting. I am going to post a series of example tutorials for temporal adjuster. We have been long struggling with date and time operations in Java. With the arrival of Java 8, the date and time API is really wonderful and makes all the operations simple and easy. In […]
Published to Java Tutorial on 14/08/2014.

Temporal Adjuster Example: Thanks Giving Day

This Java tutorial is to help understand the Temporal Adjuster introduced in Java 8 Date and Time API. In a previous tutorial we saw an introduction to Java 8 Date and Time API and followed by a tutorial for Java Temporal Adjuster. In this tutorial, let us see how to write a temporal adjuster for […]
Published to Java Tutorial on 13/08/2014.

Java 8 Date and Time: Temporal Adjuster

In this tutorial, we will see about temporal adjusters and truncation in Java SE8 Date and time API. This is a continuation of the Java 8 features introduction series. In the previous tutorial we saw about date construction, getter methods and calculate date and time with Java 8 API. Temporal Adjuster TemporalAdjuster is a functional […]
Published to Java Tutorial on 04/08/2014.

Java 8 Date and Time: Construction, Get and Set

This Java tutorial is to introduce the Java SE 8 Date and Time API. For long Java developers were not happy about the date and time support in the API. Main reason were the API was not consistent in its design, required numerous casting and conversions to achieve basic use case, not thread safe, etc. […]
Published to Java Tutorial on 04/08/2014.

Java Stream API – Part II

In this tutorial let us continue with the Java Stream API. Couple of weeks earlier we saw about the introduction to Java Stream API. There were some leftovers in that topic and lets have a look at them now. A warning for you, this is pure theory and a dry one. It may not be […]
Published to Java Tutorial on 08/07/2014.

Java Stream API

This Java tutorial is to give an introduction to the Stream API which is one of the core features of Java 8. Pipelines and streams are introduced in Java SE 8 and it enriches the Java collections API. Java Stream API package is to support functional style operations such as map-reduce transformations on collections. At […]
Published to Java Tutorial on 22/06/2014.