I need to create a method that receives a String and also returns a String.
Ex input: AAABBBBCC
Ex output: 3A4B2C
Well, this is quite embarrassing a
public class StringCompression { public static void main(String... args){ String s="aabbcccaa"; //a2b2c3a2 for(int i=0;i