Demonstrate and test StringAlign class
String[] mesg = {"JavaFun", "JavaFun!" };
for (int i=0; i<mesg.length; i++) {
System.out.println("Input String \"" + mesg[i] + "\"");
dump(StringAlign.JUST_LEFT, 5,
new StringAlign(5, StringAlign.JUST_LEFT).format(mesg[i]));
dump(StringAlign.JUST_LEFT, 10,
new StringAlign(10, StringAlign.JUST_LEFT).format(mesg[i]));
dump(StringAlign.JUST_CENTER, 5,
new StringAlign(5, StringAlign.JUST_CENTER).format(mesg[i]));
dump(StringAlign.JUST_CENTER, 10,
new StringAlign(10, StringAlign.JUST_CENTER).format(mesg[i]));
dump(StringAlign.JUST_RIGHT, 5,
new StringAlign(5, StringAlign.JUST_RIGHT).format(mesg[i]));
dump(StringAlign.JUST_RIGHT, 10,
new StringAlign(10, StringAlign.JUST_RIGHT).format(mesg[i]));
}