I suspect the original question relates to a desire to declare and initialize the ArrayList in one line and avoid having to create separate code to acheive the initialization. Thus, the answer lies in the question but may be generalized as follows:
ArrayList<AnyClass> arrayListOfAnyClass = new ArrayList<>(Arrays.asList( new AnyClass(param11, param12, ...), new AnyClass(param21, param22, ...), new AnyClass(param31, param32, ...), ...));