Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit eeea869

Browse files
authored
Fix the function name in output
1 parent 11124a7 commit eeea869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambdas/src/main/java/com/bobocode/MethodReferenceExamples.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private static void printAbsUsingMethodReference(int a) {
1616
IntUnaryOperator absOperator = Math::abs;
1717
int result = absOperator.applyAsInt(a);
1818

19-
System.out.println("abd(" + a + ") = " + result);
19+
System.out.println("abs(" + a + ") = " + result);
2020
}
2121

2222
private static void printSumUsingMethodReference(int a, int b) {

0 commit comments

Comments
 (0)