protected void writePaddedString(String s,int length){
  int pad=length - s.length();
  printer.print(s);
  while (pad > 0) {
    printer.print(" ");
    pad--;
  }
}

protected void writePaddedString ( String s , int length ) { int pad = length - s . length ( ) ; printer . print ( s ) ; while ( pad > 0 ) { printer . print ( " " ) ; pad -- ; } }
description of the method
