Menu

Task 7 Return True List Contains 11 Two Duplicate Numbers Necessarily Adjacent Systemprint Q43839952

language is java and i need a method that works withthis
/** **** Task 7 is to return true if the list contains 11 two duplicate numbers, not necessarily adjacent */ System.out.print/** **** Task 7 is to return true if the list contains 11 two duplicate numbers, not necessarily adjacent */ System.out.print(“The original values are: “); for (int i = 0; i < originalArrayList.getSize(); i++) { System.out.print (originalArrayList.getValue(i) + ” “); System.out.println(); //if (originalArrayList.containsDuplicate() { //System.out.println(“there is a duplicate”); else { /System.out.println(“no duplicates”); Show transcribed image text /** **** Task 7 is to return true if the list contains 11 two duplicate numbers, not necessarily adjacent */ System.out.print(“The original values are: “); for (int i = 0; i

Expert Answer


Answer to /** **** Task 7 is to return true if the list contains 11 two duplicate numbers, not necessarily adjacent */ System.out….

OR