-
Java 8 – Stream Collectors groupingBy examples
In this article, we will show you how to use Java 8 Stream Collectors to group by, count, sum and sort a List.
Date: 2019-08-17 View: 1520
-
Java Stream has already been operated upon or closed
In Java 8, Stream cannot be reused, once it is consumed or used, the stream will be closed.
Date: 2019-08-17 View: 1520
-
Java How to convert Array to Stream
In Java 8, you can either use Arrays.stream or Stream.of to convert an Array into a Stream.
Date: 2019-08-17 View: 1520
-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
Date: 2019-08-17 View: 1520
-
Java find class fields with specified data type
Some Java reflection API examples.
Date: 2019-08-17 View: 1520
-
Java Custom Exception Examples
In Java, there are two types of exceptions – checked and unchecked exception. Here’s the summary :
Date: 2019-08-17 View: 1520
-
How to install Oracle JDK 8 on CentOS
In this tutorial, we will show you how to install Oracle JDK 8 On CentOS.
Date: 2019-08-17 View: 1520
-
Java Final keyword example
Final keyword in Java is a modifier used to restrict the user from doing unwanted code or preventing from the code or value from being changed. It is possible to use this keyword in 3 contexts. They are:
Date: 2019-08-17 View: 1520
-
Java 8 Convert Map to List
Few Java examples to convert a Map to a List
Date: 2019-08-17 View: 1520
-
Java 8 Filter a null value from a Stream
Review a Stream containing null values.
Date: 2019-08-17 View: 1520
-
Java 8 Convert a Stream to List
A Java 8 example to show you how to convert a Stream to a List via Collectors.toList
Date: 2019-08-17 View: 1520
-
Java 8 How to sort a Map
Java 8 Stream examples to sort a Map, by keys or by values.
Date: 2019-08-17 View: 1520
-
Java 8 How to convert String to LocalDate
Few Java examples show you how to convert a String to the new Java 8 Date API – java.time.LocalDate
Date: 2019-08-17 View: 1520
-
Java Display all ZoneId and its UTC offset
A Java 8 example to display all the ZoneId and its OffSet hours and minutes.
Date: 2019-08-17 View: 1520
-
Java 8 Convert Instant to LocalDateTime
Java 8 examples to show you how to convert from Instant to LocalDateTime
Date: 2019-08-17 View: 1520