Package example
Class Example2
java.lang.Object
example.Example2
The following code shows how to use
Optional.isPresent
:
if (x.isPresent()) {
System.out.println("x: " + x.get());
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Example2
public Example2()Constructor.
-