Remove Duplicate Elements From Array Using For Loop In Java