// Store the formatted string in 'result'String result = String.format("%4d", i * j);// Write the result to standard outputSystem.out.println( result );查看格式及其语法

// Store the formatted string in 'result'String result = String.format("%4d", i * j);// Write the result to standard outputSystem.out.println( result );查看格式及其语法