How to divide the String into Similar repeating characters which are non repeating : > I have a String like "abcabcabcabc" I know it will be divided into 4 equal parts as the pattern repeats itself after every 3rd character so the breaking condition will be "a" repeating again. I was thinking if I can record the count and see if the count of all the repeating characters are equal so now I can divide my String from that point there are a lot of things running in my mind but unable to take the right approach,
2nd test case is "abccbaabccba", it should be divided from abccba - abccba


    







    import java.util.Arrays;
 

    public class EvenPattern {
	
	public static void FindPattern(String s){	
		
	
		for( Character c : ls){
			System.out.print(c+" ");
		}
		int no_of_characters = 256;
		int[] count = new int[no_of_characters];
		 Arrays.fill(count,0);
		 
		 for( int i= 0 ; i < s.length();i++){
			 count[s.charAt(i)]++;
		 }
				
	}
		
	public static void main(String[] args) {
		String s = "abcabcabd";
		
		FindPattern(s);
	}
    }