Files
HackerRank-Solutions/Java/Introduction/Java Output Formatting/Solution.java
T

20 lines
588 B
Java
Raw Normal View History

2017-02-12 00:31:12 -08:00
// Author: Rodney Shaghoulian
2018-07-27 16:45:56 -07:00
// Github: github.com/RodneyShag
// HackerRank: hackerrank.com/RodneyShag
2017-02-12 00:31:12 -08:00
2017-02-07 01:14:49 -08:00
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
2017-04-05 18:42:35 -05:00
Scanner scan = new Scanner(System.in);
System.out.println("================================");
for (int i = 0; i < 3; i++) {
String s1 = scan.next();
int x = scan.nextInt();
System.out.format("%-15s%03d%n", s1, x);
}
scan.close();
System.out.println("================================");
2017-02-07 01:14:49 -08:00
}
}