Hello,
How can I pad a string with variable spaces?
When I query a database, the columns I get are not of fixed length. I would
like to make it uniform length. Is there any short cut to add spaces at the
end of a string? In other words can anyone give me the Java equivalent to
this pseudo code?
desiredString = string1 + (35 - string1.length()) spaces.
Thanks in advance
BRN
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets