//方法1:用BigInteger和printf输出格式,用时8S import java.math.BigInteger; public class Main{ public static void main(String[] args){ String num = "ABCDEF"; String str = new BigInteger(num,16).toString(10); System.out.printf("%15s",str); } }//方法2:摘自榜前大佬的,自己领会吧 public class Ma...