• Post Reply Bookmark Topic Watch Topic
  • New Topic

Padding functionality in Java  RSS feed

 
PN Kumar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any functionality similar to LPAD and RPAD in Java?The requirement is to pad a string with spaces upto a certain length.
 
David Peterson
author
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at Jakarta Commons Lang package. Specifically the StringUtils class.
David Peterson
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!