|
@@ -3,7 +3,7 @@ package kr.co.swh.lecture.java.scene4;
|
3
|
3
|
/**
|
4
|
4
|
* <pre>
|
5
|
5
|
* kr.co.swh.lecture.java.scene4
|
6
|
|
- * PlusAnnotationMain.java
|
|
6
|
+ * LambdaMain.java
|
7
|
7
|
*
|
8
|
8
|
* 설명 : 람다 표현식 메인
|
9
|
9
|
* </pre>
|
|
@@ -12,9 +12,9 @@ package kr.co.swh.lecture.java.scene4;
|
12
|
12
|
* @author : tobby48
|
13
|
13
|
* @version : v1.0
|
14
|
14
|
*/
|
15
|
|
-public class LamdaMain {
|
|
15
|
+public class LambdaMain {
|
16
|
16
|
public static void main(String[] args) {
|
17
|
|
- LamdaInterface add = (int x, int y) -> x + y;
|
|
17
|
+ LambdaInterface add = (int x, int y) -> x + y;
|
18
|
18
|
int value = add.sum(2,3);
|
19
|
19
|
System.out.println(value);
|
20
|
20
|
}
|