/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import com.google.common.collect.*;
import java.util.ArrayList;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
			// Create an ArrayList.
		ArrayList<Integer> list = new ArrayList<>();
		list.add(10);
		list.add(20);
		list.add(30);
	
		// Create an ImmutableList from the ArrayList.
		ImmutableList<Integer> immutable = ImmutableList.copyOf(list);
	
		// Display values in ImmutableList.
		for (int value : immutable) {
		    System.out.println(value);
		}	
	}
}