FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/test/TestLambda.java at master · joeferner/node-java · GitHub
joeferner
/
node-java
Public
Notifications
You must be signed in to change notification settings
Fork
288
Star
1.9k
Code
Issues
208
Pull requests
7
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-java
/
test
/
TestLambda.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (15 loc) · 416 Bytes
Breadcrumbs
node-java
/
test
/
TestLambda.java
Copy path
File metadata and controls
18 lines (15 loc) · 416 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class
TestLambda
{
public
TestLambda
() {}
interface
IntegerMath
{
int
op
(
int
a
,
int
b
);
}
public
int
testLambdaAddition
(
Integer
x
,
Integer
y
) {
IntegerMath
addition
= (
a
,
b
) ->
a
+
b
;
return
addition
.
op
(
x
,
y
);
}
public
int
testLambdaSubtraction
(
Integer
x
,
Integer
y
) {
IntegerMath
subtraction
= (
a
,
b
) ->
a
-
b
;
return
subtraction
.
op
(
x
,
y
);
}
}
Back
|
FazBrowse Home
|
New Git URL