title: JAVA : remove duplicates from Array with pattern
body: <p>I am new to Java, With respect to this question <a href="https://stackoverflow.com/questions/18463084/remove-same-values-from-an-array">remove same values from an array</a> 
  How can we achieve it using java. 
  Any help would be greatly appreciated?</p>