import java.util.ArrayList;
import java.util.List; // for List
import java.util.LinkedList; // for Linked List
import java.util.Iterator;
import java.util.Collections;
import java.util.Set;
import java.util.TreeSet;
//set path = C:\Program Files\Java\jdk1.8.0_05\bin
//javac CompareArrayListList1.java
public class CompareArrayListList1 {
public static void main(String[] args) {
String str1[] = {"A", "C","B","D","E"};
List<String> list1 = new LinkedList<String>();
for(String st1 :str1){
list1.add(st1);
System.out.print( st1);
System.out.print(" || ");// blanks are ignored
}
System.out.println(" " );
System.out.println("Hello world " );
//
ArrayList<String> nums = new ArrayList<String>();
nums.add("Jan");
nums.add(" ||");
nums.add("Feb");
nums.add("|| ");
nums.add("Mar");
nums.add("|| ");
nums.add("Apr");
String s;
Iterator e = nums.iterator();
while (e.hasNext()) {
s = (String) e.next();
System.out.print(s);
}
}
}