/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
int[] intArray = new int[]{2,3,4,5,6,7,8};
System.
out.
println("arrayList1.size() = " + arrayList1.
size()); //ArrayList<Integer> arrayList2 = new ArrayList<Integer>(Arrays.asList(intArray));
ArrayList
<Integer
> arrayList3
= new ArrayList
<Integer
>(Arrays.
asList(integerArray
)); System.
out.
println("arrayList3.size() = " + arrayList3.
size()); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlpbnRbXSBpbnRBcnJheSA9IG5ldyBpbnRbXXsyLDMsNCw1LDYsNyw4fTsKCQlBcnJheUxpc3QgYXJyYXlMaXN0MSA9IG5ldyBBcnJheUxpc3QoQXJyYXlzLmFzTGlzdChpbnRBcnJheSkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiYXJyYXlMaXN0MS5zaXplKCkgPSAiICsgYXJyYXlMaXN0MS5zaXplKCkpOwoJCS8vQXJyYXlMaXN0PEludGVnZXI+IGFycmF5TGlzdDIgPSBuZXcgQXJyYXlMaXN0PEludGVnZXI+KEFycmF5cy5hc0xpc3QoaW50QXJyYXkpKTsKCgkJSW50ZWdlcltdIGludGVnZXJBcnJheSA9IG5ldyBJbnRlZ2VyW117MiwzLDQsNSw2LDcsOH07CgkJQXJyYXlMaXN0PEludGVnZXI+IGFycmF5TGlzdDMgPSBuZXcgQXJyYXlMaXN0PEludGVnZXI+KEFycmF5cy5hc0xpc3QoaW50ZWdlckFycmF5KSk7CgkJU3lzdGVtLm91dC5wcmludGxuKCJhcnJheUxpc3QzLnNpemUoKSA9ICIgKyBhcnJheUxpc3QzLnNpemUoKSk7Cgl9Cn0=