1. Programming in Java Lecture 10: Arrays 2. Array • Definition: An array is a group/collection of variables of the same type that are referred to by a common name. •…