Question: Write java code for : Create a method to determine how many elements in an array list of integers are duplicates. For example, given array
Write java code for :

Create a method to determine how many elements in an array list of integers are duplicates. For example, given array list A=[31561966], the number of duplicates is 2 (elements 1 and 6). Populate the array list with integers in the range 1 to 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
