printing all distinct palindromes from hash map
System . out . println ( " Below ▁ are ▁ " + ( m . size ( ) ) + " ▁ palindrome ▁ sub - strings " ) ; for ( Map . Entry < String , Integer > ii : m . entrySet ( ) ) System . out . println ( ii . getKey ( ) ) ; }