Skip to content

Commit d894d7a

Browse files
committed
Private Methods in the Interface (bug/fix)
1 parent 4ecc228 commit d894d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-9/src/main/java/com/ibrahimatay/JEP213MillingProjectCoin/PrivateMethodInInterfaces.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void main(String[] args) {
1111
// What’s New for the Java Language in JDK 9
1212
// https://docs.oracle.com/javase/9/whatsnew/toc.htm#JSNEW-GUID-825576B5-203C-4C8D-85E5-FFDA4CA0B346
1313

14-
var calculator = new PrivateMethodInInterfaces();
14+
PrivateMethodInInterfaces calculator = new PrivateMethodInInterfaces();
1515

1616
int sumOfEvens = calculator.addEvenNumbers(1,2,3,4,5,6,7,8,9);
1717
System.out.println(sumOfEvens);
@@ -21,7 +21,7 @@ public static void main(String[] args) {
2121
System.out.println(sumOfOdds);
2222
// 25
2323

24-
var message = new PrivateMethodInInterfaces();
24+
PrivateMethodInInterfaces message = new PrivateMethodInInterfaces();
2525
message.method1();
2626
message.method2();
2727
Message.method3();

0 commit comments

Comments
 (0)