add generic parameter to Iterator, ArrayList and Collection declarations