X1357: All the same?

Description

Write a method allSame that returns true if all of the array's elements are the same, false otherwise. Note that you don't know the type of data you are processing, so you have to use equals() to compare objects.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.