java code to arrange the letters of a word in alphabetical order