The following test case:
public class StringTest {
public static void main(String[] args) {
System.out.println(String.format(%08x, 1234));
}
}
produces the following error:
Exception in thread main java.lang.NumberFormatException: invalid character
at position 2 in 08
at
On 18:57 Wed 16 Feb , Pekka Enberg wrote:
The following test case:
public class StringTest {
public static void main(String[] args) {
System.out.println(String.format(%08x, 1234));
}
}
produces the following error:
Exception in thread main