/**
 * @file ListDemo.java
 * @author Valery Samovich
 * @version 1
 * @date 2015/01/20
 */

package com.samovich.java.basics.collections.list;

public class ListDemo {
    
}

@@ -138,16 +138,121 @@
 .list;%0A%0A
+import java.util.Iterator;%0Aimport java.util.List;%0Aimport java.util.ArrayList;%0Aimport java.util.Objects;%0A%0A
 public c
@@ -271,11 +271,778 @@
 o %7B%0A
+%0A
     
+public static void main(String%5B%5D args) %7B%0A        %0A        List listA = new ArrayList();%0A        %0A        listA.add(%22element 0%22);%0A        listA.add(%22element 1%22);%0A        listA.add(%22element 2%22);%0A        %0A        // access via index%0A        Object element0 = listA.get(0);%0A        Object element1 = listA.get(1);%0A        Object element2 = listA.get(2);%0A        %0A        // access via Iterator%0A        Iterator iterator = listA.iterator();%0A        while(iterator.hasNext()) %7B%0A            String element = (String) iterator.next();%0A            System.out.println(element);%0A        %7D%0A        %0A        // access via for loop%0A        for(Object object : listA) %7B%0A            String element = (String) object;%0A            System.out.println(element);%0A        %7D%0A        %0A    %7D
 %0A%7D%0A

Fix broken class