只需要按照16进制转10进制的方法写代码实现就行了,具体如下: public class Main { private static int[] num = {10, 11, 12, 13, 14, 15, 16}; private static int[] poe = {0, 1, 2}; public static void main(String[] args) { Scanner in = new Scanner(System.in); int res = 0; while (in.hasNextLine())...