Here's an a couple of examples.
- We declare an array with four elements
- We add another element to the end
- We step through all the elements (starting from zero and finishing at length-1), and print them out
- We search for a particular element
Have a look at the code and make sure you understand it.
What happens if instead of searching for "banana", you search for something that isn't found?
What happens if you attempt to access an element beyond the length of the array?