test/jdk/java/util/LinkedList/AddAll.java
changeset 48541 946e34c2dec9
parent 47730 c7b5b1ce8145
equal deleted inserted replaced
48540:221cf8307606 48541:946e34c2dec9
    25  * @test
    25  * @test
    26  * @bug 4163207
    26  * @bug 4163207
    27  * @summary AddAll was prepending instead of appending!
    27  * @summary AddAll was prepending instead of appending!
    28  */
    28  */
    29 
    29 
    30 import java.util.*;
    30 import java.util.ArrayList;
       
    31 import java.util.Collections;
       
    32 import java.util.LinkedList;
       
    33 import java.util.List;
    31 
    34 
    32 public class AddAll {
    35 public class AddAll {
    33     public static void main(String[] args) throws Exception {
    36     public static void main(String[] args) throws Exception {
    34         List head = Collections.nCopies(7, "deadly sin");
    37         List head = Collections.nCopies(7, "deadly sin");
    35         List tail = Collections.nCopies(4, "basic food group");
    38         List tail = Collections.nCopies(4, "basic food group");