void downcase(final StringBuffer text,final int leng){
  for (int i=0; i < leng; i++) {
    if (Character.isUpperCase(text.charAt(i))) {
      text.setCharAt(i,Character.toLowerCase(text.charAt(i)));
    }
  }
}

void downcase ( final StringBuffer text , final int leng ) { for ( int i = 0 ; i < leng ; i ++ ) { if ( Character . isUpperCase ( text . charAt ( i ) ) ) { text . setCharAt ( i , Character . toLowerCase ( text . charAt ( i ) ) ) ; } } }
lowercase the characters up to the given length
