用程序实现从十六进制数到十进制的转换实现语言java public class HerX ... { public int getM(int count)...{ if(count <= 0) return 1; else return 16*getM(count -1); } public String getCount(String s)...{ if(s.equals("A")) return "10"; if(s.equals("B")) return "11"; if(s.equals("C")) return "12"; if(s.equals("D")) return "13"; if(s.equals("E")) return "14"; if(s.equals("F")) return "15"; return s; } public int changeX(String x)...{ //mark = 0; int out = 0; for(int i=x.length()-1;i>=0;i--)...{ String s = String.valueOf(x.charAt(i)); out = out + Integer.parseInt(getCount(s)) * getM(x.length()-1 - i); } return out; } public static void main(String[] args)...{ HerX x = new HerX(); System.out.println(x.changeX(args[0])); }}