I'm having hard time with understanding of Optional class. So, I have a task where I need to replace every null initialization with Optional class.
e.g.
I have a class Client
So I made object like this:
Client chosen = null;
How am I supposed to replace that null initialization with Optional?