1. the class Logger already imported java.util.ArrayList that
2. calling ArrayList methods on a Logger instance does not need TestClass to import java.util.ArrayList?
3. Unless TestClass creates a new instance of ArrayList?, such as
Code: Select all
ArrayList al = new ArrayList();