└── printing /printing: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Solution { 4 | 5 | public static void main(String[] args) { 6 | Scanner sc = new Scanner(System.in); 7 | 8 | System.out.println("================================"); 9 | 10 | // Loop to read and process input lines 11 | for (int i = 0; i < 3; i++) { 12 | String s = sc.next(); // Read the string part 13 | int x = sc.nextInt(); // Read the integer part 14 | 15 | System.out.printf("%-15s%03d%n", s, x); 16 | } 17 | 18 | System.out.println("================================"); 19 | 20 | sc.close(); 21 | } 22 | } 23 | --------------------------------------------------------------------------------