Dan Shuhler

Avatar
  • Total activity 2
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • Dan Shuhler created a post,
    Answered

    IDEA shows lambda compile error but compiles.

     I have version 12.0.4 public static void main(String[] args) { Optional<String> optString = Optional.of("test"); optString.ifPresent(x -> doNothing(x)); //this line shows error: Incompatible retur...