79477885

Date: 2025-03-01 16:13:23
Score: 0.5
Natty:
Report link

StringFunction is functional interface. In other words the interface with single method.

Such interfaces could be implemented as a lambda as done in your example.

So here StringFunction exclaim = (s) -> s + "!"; the implementation is defined

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Geba