import java.util.Scanner;
public class Test {
public static void main(String[] args) {
//输出455、-123、987654,宽度为5,分别左对齐和右对齐
// 输出:
//455 455
//-123 -123
//987654 987654
System.out.printf("%-5d %5d\n",455,455);
System.out.printf("%-5d %5d\n",-123,-123);
System.out.printf("%-5d %5d",987654,987654);
}
}