java, how to find the most repeated character