-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
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 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 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 8 Convert Instant to LocalDateTime
Java 8 examples to show you how to convert from Instant to LocalDateTime
Date: 2019-08-17 View: 1520
-
Java 8 Convert Instant to ZonedDateTime
Java 8 examples to show you how to convert from Instant to ZonedDateTime
Date: 2019-08-17 View: 1520
-
Java 8 Math Exact examples
Java 8 introduced new methods in the Math class that will throw an ArithmeticException to handle overflows. These methods consist of addExact, substractExact, multiplyExact, incrementExact, decrementExact and negateExact with int and long arguments. In addition, there’s a static toIntExact method to convert a long value to an int that also throws ArithmeticException.
Date: 2019-08-11 View: 1520
-
Java 8 Optional In Depth
Java 8 has introduced a new class Optional in java.util package. It is used to represent a value is present or absent. The main advantage of this new construct is that No more too many null checks and NullPointerException. It avoids any runtime NullPointerExceptions and supports us in developing clean and neat Java APIs or Applications. Like Collections and arrays, it is also a Container to hold at most one value. Let us explore this new construct with some useful examples.
Date: 2019-08-11 View: 1520
-
Java 8 Tutorials
Some Java 8 examples, hope you like it.
Date: 2019-08-11 View: 1520
-
Java 8 Streams map() examples
In Java 8, stream().map() lets you convert an object to something else. Review the following examples :
Date: 2019-08-11 View: 1520
-
Java How to print a Pyramid
A Java example to print half and full pyramid, for fun.
Date: 2019-08-11 View: 1520