Okay say I have a class:
public class ExampleClass() { public void exampleClassMethod(ArrayList abcdefg> arrList) { ....
Use List to accept any List object in the method.
List
public void exampleClassMethod2(List custClassArg) { .... }
use List instead of ArrayList as it give more flexibility.
Also you can use List extends CustomClass> if all the other customClasses extends from a base type.
List extends CustomClass>