ok, but this doesn't work it throws

Exception in thread "main" java.util.IllegalFormatPrecisionException: 8
	at java.util.Formatter$FormatSpecifier.checkInteger(Formatter.java:2892)
	at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2643)
	at java.util.Formatter.parse(Formatter.java:2480)
	at java.util.Formatter.format(Formatter.java:2414)
	at java.util.Formatter.format(Formatter.java:2367)
	at java.lang.String.format(String.java:2769)
	at Test.main(Test.java:9)

%08x does the trick see section "Flags" in
http://download.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax