I use a generic class that inherit from ArrayList and implement a constructor with a parameter with variable number or arguments :
public class MyArrayList extends ArrayList {
public MyArrayList(T...items){
for (T item : items) {
this.add(item);
}
}
}
Example:
MyArrayListmyArrayList=new MyArrayList("s1","s2","s2");