// Store the formatted string in 'result'
String result = String.format("%4d", i * j);
// Write the result to standard output
System.out.println( result );
Want to learn Spring from the scratch? Here's is the right video for you on Spring provided by Intellipaat
Check out the format and some of the syntax