Java introduced a new class Optional in jdk8. It is a public final class and used to deal with NullPointerException in Java application. You must import java.util package to use this class. It provides methods which are used to check the presence of value for particular variable.
In this repo, I'm illustratic some basis cases mixted with some functionl programing features :)
With Love,
~ Joe