public class Format2 { public static void main ( String [] args ) { String s1 = new String("left"); String s2 = new String("center"); String s3 = new String("right"); System.out.println ( Format.left ( s1, 25 ) + "String" ); System.out.println ( Format.center ( s2, 25 ) + "String" ); System.out.println ( Format.right ( s3, 25 ) + "String" ); } }