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.
I have a List<Person>. I need to get a List from a property of Person. For example, …
java collections java-8 java-streamSuppose I have a class and a method class A { void foo() throws Exception() { ... } } Now I would like to call …
java java-8 unhandled-exception java-streamI've read on many Web sites Optional should be used as a return type only, and not used in method …
java java-8 optionalI need to consume a web service in my project. I use NetBeans so I right-clicked on my project and …
webservice-client java-8 netbeans-8I have a list myListToParse where I want to filter the elements and apply a method on each element, and …
java java-8 java-streamI'm porting a webapp from Tomcat 7 to another server with Tomcat 7 but with Java 8. Tomcat starts successfully but in log …
java eclipse tomcat java-8 classformatexceptionI can convert a java.util.Date to a java.time.Instant (Java 8 and later) this way: Calendar cal = Calendar.…
java date datetime java-8 simpledateformatThe new Java 8 stream framework and friends make for some very concise java code, but I have come across a …
java lambda java-8 java-streamI am trying to list out duplicate elements in the integer list say for eg, List<Integer> numbers = …
java lambda java-8 java-streamI am writing an app that needs to be quite accurate in dates and I wonder how can I compare …
date compare java-8