Package example


package example
  • Classes
    Class
    Description
    The following code shows how to use Optional.isPresent:
    if (v.isPresent()) {
        System.out.println("v: " + v.get());
    }
    
    The following code shows how to use Optional.isPresent:
    if (x.isPresent()) {
        System.out.println("x: " + x.get());
    }
    
    The following code shows how to use Optional.isPresent:
    if (v.isPresent()) {
        System.out.println("v: " + v.get());
    }