My if statement should address each elements of same indexes in two different arrays. However it reads everything that\'s in the arraylist. and gives me more outputs than ex