Driver Code
public static void main ( String [ ] args ) { char str [ ] = " sample ▁ program " . toCharArray ( ) ; System . out . println ( " Maximum ▁ occurring ▁ character ▁ = ▁ " + getMaxOccurringChar ( str ) ) ; } }