1. Determine the output of the following code.
System.out.format("%3d + %3d = %3d, 1, 2, 3);
System.out.format("%tY", new Date());
System.out.format("%2$s,%1$s, "John", "Smith");
2. What’s wrong with the following code?
Formatter f = new Formatter
f.format("%8.3f", 232.563);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here