import java.util.Formatter;
publicclass MainClass{
publicstaticvoid main(String[] argv){
StringBuilder sb = new StringBuilder();
Formatter f = new Formatter(sb);
int a = 1234;
int b = 5;
f.format("a = %7d and b = %-7d!!!", a, b);
System.out.println(sb);
}
}