Could it be possible to create a generic and varargs method? I know how to write a varargs method but what if it is generic?I have read a lot of things but I'm confused.
Actually, it is something like this:
ArrayList <Cell<E>> list=new ArrayList<Cell<E>> ();
public ArrayList <Cell<E>> sum(ArrayList<Cell<E>> ... elements){
....
}
Is it correct?