If the string doesn't exceed its maximum length, the Java code does nothing. If the string does exceed it, the code shortens the string to its necessary size.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Michael Marcavage. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.