【发布时间】:2015-01-16 08:18:49
【问题描述】:
Java中字节的格式说明符是什么?
例如,
%d=int
%s=short
%f=float
【问题讨论】:
-
The documentation lists it out. 它附加到
Formatter类。 -
%d=int, %d=short, %d=long, %d=byte, %d=BigInteger...Java 有 RTTI。
-
明确地说,
%s是字符串而不是short。