Monday, 9 September 2013

String.format not completely working?

String.format not completely working?

TMP = String.format("%-25s %25s", STRING1, STRING2);
Whenever I print TMP, it doesn't seem to properly print the table the way
I'm looking for
For example:
STRING1 = Test1 & Test12 STRING2 = Hello
Print:
Test1 Hello
Test12 Hello
Why is that happening?

No comments:

Post a Comment