Write a Java program to create a basic string compression method using the counts of repeated characters
Input string: aaaabbbbcccccddddeeee
Expected Output:
Enter a string (you can include space as well)
aaaabbbbcccccddddeeee
The compressed string along with the counts of repeated characters is:
a4b4c5d4e4
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer