Clonage de la liste en Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
  
class Example {
    public static void main(String[] args)
    {
        // Create a list
        List<String> original
            = Arrays.asList(
                "GeeksForGeeks",
                "A Computer Science",
                "Portal");
  
        // Clone the list
        List<String> cloned_list
            = new ArrayList<String>(original);
  
        System.out.println(cloned_list);
    }
}
Odd Otter