10
This is an example where you should favor composition over inheritance.
Instead of extending ArrayList, you should create a class that has an ArrayList member field and exposes an add method that does the right thing.
Read Effective Java. Here is the example that describes this issue specifically.