This is my code :
import java.util.ArrayList;
class collection<T>
{
T[] ob;
collection(T[] ob)
{
this.ob=ob;
}
public static void main(
String args[])
{
ArrayList<Integer> list=new ArrayList<Integer>();
Integer [] i={2,4,5,67,8};
collection<Integer> i1=new collection<Integer>(i);
//list.add(i);
}
}