JAVA
Posted: Fri Apr 29, 2022 8:03 am
JAVA
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)
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)