Caliban on 12/06/07
Last Edited at 12/06/07 04:53am
import org.apache.commons.lang.StringUtils; public class TestRightPad { /** * @param args */ public static void main( String[] args ) { String text = StringUtils.rightPad( "Key", 15 ) + ": " + "Value"; // prints Key : Value System.out.println( text ); } }
Report this snippet Tweet
Comment:
You need to login to post a comment.