Advertisement
JeffGrigg

Untitled

Oct 8th, 2020
2,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.79 KB | None | 0 0
  1. import java.util.LinkedList;
  2. import java.util.List;
  3.  
  4. public class Separated {
  5.  
  6.     public static void main(String[] args) {
  7.         final List<String> separatedSongList = new LinkedList<>();
  8.         separatedSongList.add("Let's Kill This Love");
  9.         separatedSongList.add("Fancy");
  10.         separatedSongList.add("Peek A Boo");
  11.         separatedSongList.add("La Vie En Rose");
  12.         separatedSongList.add("I Am The Best");
  13.         System.out.println("Separated Song List:");
  14.         System.out.println(separatedSongList);
  15.  
  16.         final List<String> hardlyAList = new LinkedList<>();
  17.         hardlyAList.add("Let's Kill This Love, Fancy, Peek A Boo, La Vie En Rose, I Am The Best");
  18.         System.out.println("Unseparated Song List:");
  19.         System.out.println(hardlyAList);
  20.     }
  21.  
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement