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.

How to install Java 8 on Mac

I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS …

java macos java-8 installation
Java 8 List<V> into Map<K, V>

I want to translate a List of objects into a Map using Java 8's streams and lambdas. This is how …

java lambda java-8 java-stream
How to parse/format dates with LocalDateTime? (Java 8)

Java 8 added a new java.time API for working with dates and times (JSR 310). I have date and time as …

java datetime java-8 timestamp java-time
Convert java.util.Date to java.time.LocalDate

What is the best way to convert a java.util.Date object to the new JDK 8/JSR-310 java.time.LocalDate? …

java datetime java-8 java-time
Converting between java.time.LocalDateTime and java.util.Date

Java 8 has a completely new API for date and time. One of the most useful classes in this API is …

java datetime java-8 java-time
Error:java: javacTask: source release 8 requires target release 1.8

Using IntelliJ IDE can't compile any projects. Screenshots of settings below: Used JDK: Project SDK and Language level: Language Level: …

java intellij-idea java-8
How to convert a Java 8 Stream to an Array?

What is the easiest/shortest way to convert a Java 8 Stream into an array?

java arrays java-8 java-stream
Find first element by predicate

I've just started playing with Java 8 lambdas and I'm trying to implement some of the things that I'm used to …

java java-8 java-stream
What's the difference between map() and flatMap() methods in Java 8?

In Java 8, what's the difference between Stream.map() and Stream.flatMap() methods?

java java-8 java-stream
How to sum a list of integers with java streams?

I want to sum a list of integers. It works as follows, but the syntax does not feel right. Could …

java java-8 java-stream