Write a method called hasPair that accepts an array of integers as a parameter and returns true if it contain any values that are equal (return false otherwise). Hint: You need two nested loops. (4 marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!