![]() |
VOOZH | about |
public static OptionalInt of(int value)Parameters: This method accepts a int value as parameter that will be set to the returned OptionalInt object. Return value: This method returns an OptionalInt with the value present. Below programs illustrate of(int) method: Program 1:
OptionalInt: OptionalInt[452]
OptionalInt: OptionalInt[2149]