About 50 results
Open links in new tab
  1. What does the arrow operator, '->', do in Java? - Stack Overflow

    7 New Operator for lambda expression added in java 8 Lambda expression is the short way of method writing. It is indirectly used to implement functional interface Primary Syntax : (parameters) -> { …

  2. How do I define a method which takes a lambda as a parameter in Java …

    Nov 28, 2012 · In Java 8, methods can be created as Lambda expressions and can be passed by reference (with a little work under the hood). There are plenty of examples online with lambdas being …

  3. What is the breakdown for Java's lambda syntax?

    Aug 8, 2014 · Please explain the syntax for Java 8's lambda methods. There are a lot of explanations out there for what lambda functions are, but I can't find a thorough explanation of the syntax, and I …

  4. Use Java lambda instead of 'if else' - Stack Overflow

    Apr 16, 2018 · Use Java lambda instead of 'if else' Asked 7 years, 10 months ago Modified 4 years, 3 months ago Viewed 174k times

  5. java - Returning a value from a method within a lambda expression ...

    The fact that you're using a lambda expression is really incidental here. Imagine you were just calling forEach and passing in some argument - wouldn't it be really weird if that call made your …

  6. java - Modifying local variable from inside lambda - Stack Overflow

    May 4, 2015 · Java will compile the code as if it was MyClass$1 wrapper = new MyClass$1();. And the anonymous class becomes just another class. In the end, we just added syntactical sugar on top of it …

  7. java - What is the equivalent lambda expression for System.out::println ...

    Jan 19, 2015 · The method reference System.out::println will evaluate System.out first, then create the equivalent of a lambda expression which captures the evaluated value. Usually, you would use o -> …

  8. Java 8 lambda get and remove element from list - Stack Overflow

    Feb 29, 2016 · Java 8 lambda get and remove element from list Asked 9 years, 11 months ago Modified 3 years, 7 months ago Viewed 330k times

  9. How to collect and send file from S3 to external SFTP using Lambda

    Then you need to use the AWS SDK for Java to download the file from S3 to the Lambda function's /tmp folder. Then have your function perform whatever edits you need to on the file in the /tmp folder. …

  10. java - Variable used in lambda expression should be final or ...

    Jan 19, 2016 · Java 8 realized the pain of declaring local variable final every time a developer used lambda, introduced this concept, and made it unnecessary to make local variables final. So if you …