protected void pad(StringBuilder sb,int length){
  while (sb.length() < length) {
    sb.append(" ");
  }
}

protected void pad ( StringBuilder sb , int length ) { while ( sb . length ( ) < length ) { sb . append ( " " ) ; } }
appends spaces to the end of the stringbuilder to make it length long
