Skip to content

Commit ec38242

Browse files
committed
Fix variable redeclaration in lambdas streams three
1 parent 0b9cfcc commit ec38242

File tree

1 file changed

+3
-3
lines changed
  • section-09-lambdas-streams/three/src/main/java/lambdas/three

1 file changed

+3
-3
lines changed

section-09-lambdas-streams/three/src/main/java/lambdas/three/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ public static void main(String[] args) {
3030
System.out.println(result);
3131

3232
// and()
33-
boolean result = lessThan100.and(greaterThan50).test(55);
33+
result = lessThan100.and(greaterThan50).test(55);
3434
System.out.println(result); //true
3535

3636
// or()
37-
boolean result = lessThan100.or(greaterThan50).test(3);
37+
result = lessThan100.or(greaterThan50).test(3);
3838
System.out.println(result); //true
3939

4040
// negate()
41-
boolean result = lessThan100.negate().test(3);
41+
result = lessThan100.negate().test(3);
4242
System.out.println(result); //false
4343

4444
}

0 commit comments

Comments
 (0)