Java 19120 Code review changes (#13747)

* JAVA-19120 Move article Lambda Expression vs. Anonymous Inner Class to core-java-8-2 module

---------

Co-authored-by: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com>
This commit is contained in:
anuragkumawat
2023-04-20 21:10:19 +05:30
committed by GitHub
parent 1fddb80c70
commit 239fb85d3e
4 changed files with 1 additions and 1 deletions

View File

@@ -1,14 +0,0 @@
package com.baeldung.anonymousclass;
public class AnonymousClassExample{
public static void main(String[] args){
Thread t1 = new Thread(new Runnable(){
@Override
public void run() {
System.out.println("Thread: "+Thread.currentThread().getName()+" started");
}
});
t1.start();
}
}

View File

@@ -1,9 +0,0 @@
package com.baeldung.lambdaexpression;
public class LambdaExpressionExample{
public static void main(String[] args){
Thread t1 = new Thread(()->System.out.println("Thread: "+Thread.currentThread().getName()+" started"));
t1.start();
}
}