@@ -0,0 +1,1054 @@
+package javaOutputFormatting;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Solution %7B%0A%0A%09public static String formatString(String s1) %7B%0A        int stringLength = 15;%0A        for( int j = s1.length(); j %3C stringLength; ++j) %7B%0A            s1 += %22 %22;%0A        %7D%0A        return s1;%0A    %7D%0A %0A    public static String formatInt(String intOutput) %7B%0A        int intLength = 3;%0A        for( int j = intOutput.length(); j %3C intLength; ++j) %7B%0A            intOutput = %220%22 + intOutput;%0A        %7D%0A        return intOutput;%0A    %7D%0A    %0A    public static void main(String%5B%5D args) %7B%0A            Scanner sc = new Scanner(System.in);%0A            System.out.println(%22================================%22);%0A            for(int i = 0; i %3C 3; i++)%0A            %7B%0A                String s1 = sc.next();%0A                int x = sc.nextInt();%0A                String intOutput = Integer.toString(x);%0A                System.out.println(formatString(s1) + formatInt(intOutput));%0A            %7D%0A            System.out.println(%22================================%22);%0A            sc.close();%0A    %7D%0A%7D%0A%0A

Add solution for problem Java Output Formatting