You need to remove the type parameters and add casts to any get operations.
5.0
1.4
ArrayList<Type> arrayList = new ArrayList<Type>()
ArrayList arrayList = new ArrayList();
arrayList.get(i)
(Type) arrayList.get(i)