To add on to what Mike said
Even though you subclass class m from java.util.ArrayList. With the present code, you still cannot access the protected method removeRange by using reference ArrayList al.
Protected members outside the package can be accessed using inheritance and not by reference.
Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.