For example:
private String test(Optional myOptional)
{
myOptional.ifPresent(() -> return "1");
return "0";
}
so when I call test(myOptional) it will return "1";
For example:
private String test(Optional myOptional)
{
myOptional.ifPresent(() -> return "1");
return "0";
}
so when I call test(myOptional) it will return "1";