Changed ArrayList definitions to match Java 1.6 specs.