import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { //使用HashMap转换 HashMap<Character,Integer> map = new HashMap<Character,Integer>(); map.put('0',0); map.put('1',1); map.put('1',1); map.put('2',2); map.put('3',3); map.put(...