Tag: java9

map collection factory

Map Collection Factory Java Challenge

In Java 9 we can use Collection Factory with List, Set, or Map. This makes code more concise and easier to read because we don’t need to add element per element in the Map. Therefore, it’s time to try this fun Java Challenge! Are you...

Optional takeWhile dropWhile

Optional takeWhile dropWhile Challenge

The Optional concept is present in many other programming languages. The main goal of the Optional class is to avoid NullPointerException. It’s much easier to deal with null values when we use the concepts of an Optional. In this challenge, we...

jedi lambda join challenge

Jedi Lambda Join Java Challenge

There are many concepts involved in Java Challenge! In essence, we will explore lambdas and the Function interface the most. However, we also have static methods introduced in Java 8 the private method in interfaces introduced in Java 9. In the...

Java 9 try with resources

Java 9 try catch Error Exception

Use try catch with Exception and Error by using the new try with resources feature from Java 9 by not declaring the Exception into the try block! Take this Java Challenger and be able to use the full power of it! Master recent Java versions by...

Java 9 Collection Factory Methods

Java 9 Collection Factory Methods

Learn the Collection Factory methods concepts from Java 9. Learn concepts from the most recent Java versions by taking the challenges and having fun at the same time. Also, improve your range of Java skills so you can produce better code.