Top "Java-8" questions

Use this tag for questions specific to Java 8 which is version 8 (internal number 1.8) of the Java platform, released on 18 March 2014.

Lambda expression to convert array/List of String to array/List of Integers

Since Java 8 comes with powerful lambda expressions, I would like to write a function to convert a List/array of …

java arrays collections lambda java-8
PermGen elimination in JDK 8

I have installed JDK 8 and trying to run Eclipse. I am getting following warning message: Java HotSpot(TM) 64-Bit Server …

java java-8 jvm permgen
Java "lambda expressions not supported at this language level"

I was testing out some new features of Java 8 and copied the example into my IDE (Eclipse originally, then IntelliJ) …

java intellij-idea lambda java-8
Hashmap with Streams in Java 8 Streams to collect value of Map

Let consider a hashmap Map<Integer, List> id1 = new HashMap<Integer,List>(); I inserted some values …

java hashmap java-8 collectors
Maven is not working in Java 8 when Javadoc tags are incomplete

Since I use Maven I have been able to build and install in my local repository projects that have incomplete …

java maven migration java-8 javadoc
Java 8 lambda Void argument

Let's say I have the following functional interface in Java 8: interface Action<T, U> { U execute(T t); } …

java lambda java-8 void
Difference between final and effectively final

I'm playing with lambdas in Java 8 and I came across warning local variables referenced from a lambda expression must be …

java lambda inner-classes final java-8
Should I always use a parallel stream when possible?

With Java 8 and lambdas it's easy to iterate over collections as streams, and just as easy to use a parallel …

java parallel-processing java-8 java-stream
JSON Java 8 LocalDateTime format in Spring Boot

I'm having a small problem with formatting a Java 8 LocalDateTime in my Spring Boot Application. With 'normal' dates I have …

java json java-8 spring-boot java-time
LocalDate to java.util.Date and vice versa simplest conversion?

Is there a simple way to convert a LocalDate (introduced with Java 8) to java.util.Date object? By 'simple', I …

java date java-8 java-time