### Question:
ContainsDuplicate { public boolean containsDuplicate3(int[] nums) { Arrays.sort(nums); for (int i = 0; i < nums.length - 1; i++) { if(nums[i+1] == nums[i]){ return true; } } return false; }  boolean containsDuplicate(int[] nums); boolean containsDuplicate2(int[] nums); boolean containsDuplicate3(int[] nums);  }### Answer:
@Test void go3() { ContainsDuplicate containsDuplicate = new ContainsDuplicate(); for (int i = 0; i < cases.size(); i++) { assertEquals(results.get(i),containsDuplicate.containsDuplicate3(cases.get(i))); } }