public static String createString(final char ch,final int numChars){
  final StringBuilder builder=new StringBuilder();
  for (int i=0; i < numChars; ++i) {
    builder.append(ch);
  }
  return builder.toString();
}

public static String createString ( final char ch , final int numChars ) { final StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < numChars ; ++ i ) { builder . append ( ch ) ; } return builder . toString ( ) ; }
creates a string initialized with a single character .
