Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 482 Bytes

File metadata and controls

6 lines (5 loc) · 482 Bytes

TextFormat

A java library for String text-formatting.

  • formatWidth(String text, int columnWidth): Formats text into a column of specified width. This algorithm keeps words intact unless they are longer than the specified width.
  • center(String text, int columnWidth): Formats text into a column of specified width and centers each line of text.
  • rightJustify(String text, int columnWidth): Formats text into a column of specified width and right-justifies each line of text.