RemoveDuplicatesfromSortedArray { public int removeDuplicates(int[] nums) { return 0; }  int removeDuplicates(int[] nums);  }
@Test public void testremoveDuplicates() { int[] nums = new int[] {1, 1, 2, 2, 3, 4, 7, 7, 15}; int result = 6; Assert.assertEquals(result, testObject.removeDuplicates(nums)); }