BAEL-4236 | fix the failing build
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
package com.baeldung;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class CopyListUsingJava10Demo {
|
||||
static List<Integer> copyList(List<Integer> source) {
|
||||
return List.copyOf(source);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<Integer> source = Arrays.asList(11, 22, 33);
|
||||
|
||||
List<Integer> destination = copyList(source);
|
||||
|
||||
System.out.println("copy = " + destination);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user