public class Main { public static void main(String[] args) { char[] str = {'d','a','b','c','d'}; for(char a:str){ System.out.print(a); } System.out.println(""); int[] number = new int[26]; for(char a:str){ number[a...