public static String repeatChar(char character,int repeatCount){
  StringBuffer stringBuffer=new StringBuffer(repeatCount);
  for (int i=1; i <= repeatCount; i++) {
    stringBuffer.append(character);
  }
  return stringBuffer.toString();
}

public static String repeatChar ( char character , int repeatCount ) { StringBuffer stringBuffer = new StringBuffer ( repeatCount ) ; for ( int i = 1 ; i <= repeatCount ; i ++ ) { stringBuffer . append ( character ) ; } return stringBuffer . toString ( ) ; }
returns a constant width space to stdout this method is used to print test pass / fail msg after a constant width from the test execution stage
