I know that method String.format() is nearly the same as method System.out.printf() except it returns a String. But I could hardly find the introduction about method “formatted” which is defined as follows: And I know the functions of two codes below are the same. Therefore I’m wandering what’s the difference between them. Thank you! Answer Make sure you use a