Discussion:
Q: Show what is printed by each of the following statements. If a statement is incorrect, indicate why.
a) System.out.printf("%-10dn",10000);
b) System.out.printf("%cn", "this is a string");
c) System.out.printf("%8.3fn",1024.987654);
d) System.out.printf("%#on%#xn",17,17);
e) System.out.printf("%dn%+dn",1000000, 1000000);
f) System.out.printf("%10.2en",444.93738);
g) System.out.printf("%dn", 10.987);