Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 11th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public String rightJustify(String inString, int lineLength) {
  2.     if (inString.length() >= lineLength) {
  3.         return inString
  4.     } else {
  5.         return " " + rightJustify(inString, lineLength - 1)
  6.     }
  7. }