public static void main(String[] args) 
    {
        List<String> groceryList = new ArrayList<String>();
        groceryList.add("Beer");
        groceryList.add("Salsa");
        groceryList.add("Chips");
        groceryList.add("Beer");
        groceryList.add("Chips");
        
        int size = groceryList.size();
        
        System.out.println("List size: " + size);
        
        for(String s : groceryList)
        {
            System.out.println("Item: " + s);
        }
    }