Page 1 of 1

JAVA

Posted: Fri Apr 29, 2022 8:03 am
by answerhappygod
JAVA
Java 1
Java 1 (14.55 KiB) Viewed 18 times
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)