add an element evry 3 element in the arraylist code example
Example: how to add all list elements at once in java
import java.util.*;
List l = new ArrayList();
l.addAll(new ArrayList(Arrays.asList(5,6,8,11)));
import java.util.*;
List l = new ArrayList();
l.addAll(new ArrayList(Arrays.asList(5,6,8,11)));