Lasse Reichstein Nielsen wrote:
>> System.out.printf("%2x%n", 55);
> Is not good, must be object type arguments array. I'm wrong?
> printf(String format, Object... args)
And yet it works. Didn't you try it?
Lasse Reichstein Nielsen gave you the right advice.
It's an interesting exercise to figure out why it works. (Autoboxing)
<http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html#printf(java.lang.
String,%20java.lang.Object...)>
> An invocation of this method of the form out.printf(format, args)
> behaves in exactly the same way as the invocation
> out.format(format, args)
format()'s Javadocs in turn reference
<http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax>
wherein they explain that a '%x' conversion will handle
> ... Java integral types: byte, Byte, short, Short, int and Integer, long, Long, and BigInteger
The Javadocs are a handy source of information.

Signature
Lew