Remove Duplicates From Sorted Array Using Java