This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In the xbase languages there are a number of string functions that I used all the time - padl (pad left) - padr (pad right) and alltrim() - additionally - padl and padr would take two or three parameters - the string to be padded, the length of the new string and optionally the pad character (default to spaces) do these constructs exist in java? example... local strTest = " abc " strTest = padl(alltrim(strTest), 4) strTest == " abc" I could create my own class to do this but don't want to reinvent the wheel - any help would be appreciated Thank you, Tom Bigbee ------------------