You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, while submit also takes a Runnable, the lambda expression in the question returns a value (1), so it has to be a Callable, which can return a value.
However, this question may be unnecessarily confusing, so I changed Runnable to Predicate.
I believe that the alternative of the letter 'A' is also correct.
The text was updated successfully, but these errors were encountered: