/* 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
{
{
// 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) {
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBjb20uZ29vZ2xlLmNvbW1vbi5jb2xsZWN0Lio7CmltcG9ydCBqYXZhLnV0aWwuQXJyYXlMaXN0OwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQkJLy8gQ3JlYXRlIGFuIEFycmF5TGlzdC4KCQlBcnJheUxpc3Q8SW50ZWdlcj4gbGlzdCA9IG5ldyBBcnJheUxpc3Q8PigpOwoJCWxpc3QuYWRkKDEwKTsKCQlsaXN0LmFkZCgyMCk7CgkJbGlzdC5hZGQoMzApOwoJCgkJLy8gQ3JlYXRlIGFuIEltbXV0YWJsZUxpc3QgZnJvbSB0aGUgQXJyYXlMaXN0LgoJCUltbXV0YWJsZUxpc3Q8SW50ZWdlcj4gaW1tdXRhYmxlID0gSW1tdXRhYmxlTGlzdC5jb3B5T2YobGlzdCk7CgkKCQkvLyBEaXNwbGF5IHZhbHVlcyBpbiBJbW11dGFibGVMaXN0LgoJCWZvciAoaW50IHZhbHVlIDogaW1tdXRhYmxlKSB7CgkJICAgIFN5c3RlbS5vdXQucHJpbnRsbih2YWx1ZSk7CgkJfQkKCX0KfQ==