I have a given char array and have to remove the duplicate letters in it. How can I do this in Java?
Example:
Given char array:
char[] s = { 'H','e','l','l','o','W','o','r','l','d','!'};
Expected result:
char[] s = { 'H','e','l','o','W','r','d','!'};