Skip to content
sneppets

sneppets

  • Privacy
sneppets-java8

Java 8 : Find union and intersection of two Lists (ArrayLists)

February 17, 2020February 20, 2020 Editorial Staff1 Comment on Java 8 : Find union and intersection of two Lists (ArrayLists)

This tutorial shows you how to find union and intersection of two Lists (ArrayLists).

Java Intersection, java, java8, lists, union
sneppets-java8

How to manipulate Java 8 Stream data sources or objects?

February 15, 2020February 20, 2020 Editorial StaffLeave a Comment on How to manipulate Java 8 Stream data sources or objects?

This tutorial shows you how to manipulate Java 8 stream data sources or objects.

Java java, java8, stream
sneppets-java8

Java 8 : Find first element from a collection (List or Set)

February 5, 2020February 12, 2020 Editorial StaffLeave a Comment on Java 8 : Find first element from a collection (List or Set)

This tutorial explains you how to find first element from collection like List or Set using Java 8 streams findFirst(), iterator() and listIterator methods.

Java collection, java8, streams
sneppets-java8

Java 8 – Convert LocalDate to Date ?

November 15, 2019November 17, 2019 Editorial StaffLeave a Comment on Java 8 – Convert LocalDate to Date ?

Below Java 8 examples shows how to convert from LocalDate to Date and vice versa.

Java Date, java8, LocalDate

Convert LocalDate object to dd/MM/yyyy string format

November 15, 2019November 17, 2019 Editorial StaffLeave a Comment on Convert LocalDate object to dd/MM/yyyy string format

You can convert LocalDate object to dd/MM/yyyy using atStartOfDay() methods of LocalDate class. There are two ways to convert LocalDate to dd/MM/yyyy string. Let’s see those in the below example.

Java java8, LocalDate

Posts navigation

Older posts
Copyright © 2018 Sneppets. All Rights Reserved