-
Java 8 flatMap example
In Java 8, Stream can hold different data types, for examples:
2019-08-17【[Java]】
阅读更多 -
How to install Oracle JDK 8 on CentOS
In this tutorial, we will show you how to install Oracle JDK 8 On CentOS.
2019-08-17【[Java]】
阅读更多 -
Java 8 Convert Map to List
Few Java examples to convert a Map to a List
2019-08-17【[Java]】
阅读更多 -
Java 8 Filter a null value from a Stream
Review a Stream containing null values.
2019-08-17【[Java]】
阅读更多 -
Java 8 How to sort a Map
Java 8 Stream examples to sort a Map, by keys or by values.
2019-08-17【[Java]】
阅读更多 -
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
2019-08-17【[Java]】
阅读更多 -
Java 8 Convert Instant to LocalDateTime
Java 8 examples to show you how to convert from Instant to LocalDateTime
2019-08-17【[Java]】
阅读更多 -
Java 8 Convert Instant to ZonedDateTime
Java 8 examples to show you how to convert from Instant to ZonedDateTime
2019-08-17【[Java]】
阅读更多 -
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.
2019-08-11【[Java]】
阅读更多 -
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.
2019-08-11【[Java]】
阅读更多 -
Java 8 Tutorials
Some Java 8 examples, hope you like it.
2019-08-11【[Java]】
阅读更多 -
Java 8 Streams map() examples
In Java 8, stream().map() lets you convert an object to something else. Review the following examples :
2019-08-11【[Java]】
阅读更多 -
Java How to print a Pyramid
A Java example to print half and full pyramid, for fun.
2019-08-11【[Java]】
阅读更多