@@ -0,0 +1,574 @@
+public class RemoveDuplicatesFromString %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09RemoveDuplicatesFromString rsd = new RemoveDuplicatesFromString();%0A%09%09String input = %22Tree Traversal%22;%0A%09%09System.out.println(rsd.getUniqueString(input));%0A%09%7D%0A%0A%09public String getUniqueString(String input) %7B%0A%09%09boolean%5B%5D isUsed = new boolean%5B256%5D;%0A%09%09StringBuffer sb = new StringBuffer();%0A%09%09for (int i = 0; i %3C input.length(); i++) %7B%0A%09%09%09int position = input.charAt(i);%0A%09%09%09if (!isUsed%5Bposition%5D) %7B%0A%09%09%09%09sb.append(input.charAt(i));%0A%09%09%09%09isUsed%5Bposition%5D = true;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return sb.toString();%0A%09%7D%0A%7D

Remove duplicates from string Java.