Package example

Class Example2

java.lang.Object
example.Example2

public class Example2 extends Object
The following code shows how to use Optional.isPresent:
if (x.isPresent()) {
    System.out.println("x: " + x.get());
}
  • Constructor Details

    • Example2

      public Example2()
      Constructor.