import java.util.*;
public class Main {
public static void main(String[] args) {
LinkedList <String> print = new LinkedList <String> ();
print.add("Together");
print.add("Million Reasons");
print.add("The Climb");
print.add("Who You Are");
print.add("A Woman's Worth");
System.out.println("songs: " + print);
LinkedList <String> display = new LinkedList <String> ();
display.add("Mariah Carey");
display.add("Lady Gaga");
display.add("Miley Cyrus");
display.add("Jessie J");
display.add("Alicia Keys");
System.out.println("Artists:" + display);
LinkedList <String> m = new LinkedList <String> ();
m.addAll(print);
m.addAll(display);
System.out.println("playlist:" + m);
}
}
Comments
Leave a comment