In this exercise, all we need to do to construct different functionalities of array. However, the concept of the OOP is, again, used in this program. For instance, we do need to care about what does the parameter animate() mean, yet we are still able to code the program. This notion of abstraction can be greatly incorporated into our IA, which allows us for multiple layers of functionality. We should write methods in general cases and call them whenever needed.
The first question only asks us to print out all the elements in the array using the method of animate(). All we need to do is to loop through all the elements in the array. It should be noted that finding the length of an array uses .length, getting the value within the field (length) of that array; while .length() is a method, used for anything that is encapsulated. 
This method sets every element in the array to a specific value.

A if statement is used to check whether the input value matches the value of the element in the array. If it does, the count will plus one.

This method compares the each element within the array with a variable defined as minimum. If the element is smaller than the “minimum,” then the “minimum” will be replaced by the new one.


