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
StringBuilder (you did that)previousChar and counterstr.length() - 1str.charat(i) and compare it to what's stored in the previousChar variablecounter + currentChar, reset counterpreviousCharSomething like that.