daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest May 16th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class List {
  2.     public static void main(String[] args){
  3.         LinkedList<String> list = new LinkedList<String>();
  4.        
  5.         list.add("Derp1");
  6.         list.add("Derp2");
  7.         list.add("Derp3");
  8.         list.add("Derp4");
  9.         list.add("Derp5");
  10.         list.add("Derpgdgadffd");
  11.         list.add("Derp7");
  12.         list.add("Derp8");
  13.         list.add("DerpSKYRIM");
  14.         list.add("Derp10");
  15.        
  16.         list.addFirst("First");
  17.        
  18.         for(String str : list){
  19.             System.out.println(str);
  20.         }
  21.     }
  22. }
RAW Paste Data
Top