package Devmanuals.com; import java.util.List; import java.util.ArrayList; public class ListAdd { public static void main(String[] args) { List olist = new ArrayList(); olist.add("Dev"); olist.add("Manuals"); System.out.println("The elements are: " + olist); System.out.println("The Size of the list is: " + olist.size()); olist.add(2, "com"); System.out.println("After the addition of element at index 2 the new element= "+ olist); System.out.println("The Size of the list after addition is: "+ olist.size()); } }