Java program to implement run length encoding
public class RunLength_Encoding { public static void printRLE ( String str ) { int n = str . length ( ) ; int count = 1 ; for ( int i = 1 ; i < n ; i ++ ) {