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:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user