Manishii yadav wrote:Hi
Can anyone share the link where lambda expression nicely explained?
Campbell Ritchie wrote:But there is a more efficient way to total those numbers.
Campbell Ritchie wrote:How do you know you will want loops? Isn't that jumping ahead a bit?
Anton Plotnikov wrote:i want write this function.
what code do I need to insert?
Omas Sakau wrote:
Stephan van Hulst wrote:No, it wouldn't. If you leave @FunctionalInterface and remove @Override, you get this error message:
Campbell Ritchie wrote:As you will see, that becomes a compiler error because of the access modifier.
Did you read the JLS llink from Friday? The interface doesn't have an implicit clone() method to override.
Stephan van Hulst wrote:You can not lower visibility of a method.