arraylist change for java 6