We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
람다 문법, lambda 바디에 {}는 어떤 기준일까
{} 가 있고 없고의 기준이 명확하게 나와있지 않다.
String hello = () -> return "hello";
String hello = () -> "hello";
BinaryOperator<Integer> sum = (a, b) -> a + b; // Integer a, Integer b에 타입 생략
public class Foo { public static void main() { Foo foo = new Foo(); foo.fun() private void run() { int baseNumber = 10; // 참조하는 상태 값. 앞에 final이 생략. (effective final) IntConsumer printInt = (i) -> { System.out.println(i + baseNumber); } printInt.accept(10); } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
주제
람다 문법, lambda 바디에 {}는 어떤 기준일까
선정 배경
{} 가 있고 없고의 기준이 명확하게 나와있지 않다.
본론
The text was updated successfully, but these errors were encountered: