/** * Output: String is 'A ' */public class MainClass { public static void main(String args[]) throws Exception { System.out.printf("String is '%-5s'\n", "A"); }}