PwC Interview Question

Write a code to remove duplicates in a array in java