Slide 1The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Arrays and ArrayLists C H A P T E R 1 1 1 slides partially adapted from UW CSE 142…