@@ -0,0 +1,859 @@
+import java.util.Scanner;%0A%0A/**%0A * This program strips words of repeating letters, or reports if there are none.%0A **/%0Apublic class RemoveDuplicateLetters %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        System.out.println(%22Input word%22);%0A        String word = scanner.nextLine();%0A        String ans = %22%22;%0A%0A        for (int i = 0; i %3C word.length(); i++) %7B%0A            int count = 0;%0A            for (int j = 0; j %3C ans.length(); j++) %7B%0A                if (word.charAt(i) == ans.charAt(j)) %7B%0A                    count++;%0A                %7D%0A            %7D%0A            if (count == 0) %7B%0A                ans += word.charAt(i);%0A            %7D%0A        %7D%0A%0A        if (word.equals(ans)) %7B%0A            System.out.println(%22No repeated letters%22);%0A        %7D else %7B%0A            System.out.println(ans);%0A        %7D%0A    %7D%0A%7D%0A

Add problem 6 to unit 3