@@ -0,0 +1,1319 @@
+/* ============================================================================%0D%0A * Copyright (c) 2015 Imagic Bildverarbeitung AG, CH-8152 Glattbrugg.%0D%0A * All rights reserved.%0D%0A *%0D%0A * http://www.imagic.ch/%0D%0A * ============================================================================%0D%0A */%0D%0Apackage algorithm.string;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0A/**%0D%0A *%0D%0A * @version $Revision$%0D%0A * @version $Date$%0D%0A * @author $Author$%0D%0A * @owner Sandro Mario Zbinden%0D%0A */%0D%0Apublic class AlternatingCharacters %7B%0D%0A    public static class Solution %7B%0D%0A%0D%0A        private static int alternatingCharacters(String input) %7B%0D%0A            int deleteCount = 0;%0D%0A            for (int i = 0; i %3C input.length() - 1; i++) %7B%0D%0A                if (input.charAt(i) == input.charAt(i + 1)) %7B%0D%0A                    deleteCount = deleteCount + 1;%0D%0A                %7D%0D%0A            %7D%0D%0A            return deleteCount;%0D%0A        %7D%0D%0A%0D%0A        public static void main(String%5B%5D args) %7B%0D%0A            try (Scanner in = new Scanner(System.in)) %7B%0D%0A                int testCases = in.nextInt();%0D%0A                for (int i = 0; i %3C testCases; i++) %7B%0D%0A                    System.out.println(alternatingCharacters(in.next()));%0D%0A                %7D%0D%0A            %7D%0D%0A        %7D%0D%0A%0D%0A    %7D%0D%0A%0D%0A    public static void main(String%5B%5D args) %7B%0D%0A        Solution.main(null);%0D%0A    %7D%0D%0A%7D%0D%0A

Add solution for Alternating Characters problem