Answers for "Java/Perl - "sprintf function in java" or "string format""

0

Java/Perl - "sprintf function in java" or "string format"

// Store the formatted string in 'result'
String result = String.format("%4d", i * j);

// Write the result to standard output
System.out.println( result );
Posted by: Guest on October-19-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language