Kotlinlearncs.online LogoJava
Return to List

Solve: Same or Different

Created By: Geoffrey Challen
/ Version: 2020.10.0

Create a method orDifferent that accepts a nullable array of Any values and returns true if all the references refer to the same object, and false otherwise. If the passed array is null or empty you should return false.

Related Lessons

Stuck? You may find these lessons helpful: