hash tables to store frequencies of each character
int [ ] freq1 = new int [ SIZE ] ; int [ ] freq2 = new int [ SIZE ] ; char [ ] str1 = str . toCharArray ( ) ; char [ ] str2 = str3 . toCharArray ( ) ; int n1 = str . length ( ) ; int n2 = str3 . length ( ) ;