输出为八进制数、十六进制数

it2025-11-11  8

将十进制数输出为八进制数、十六进制数

输出八进制数变量前加0 System.out.println(010); 运行结果:

输出十六进制数变量前加0x System.out.println(0x9); 运行结果:

最新回复(0)