public int capacity(){
  return internal.capacity();
}

public int capacity ( ) { return internal . capacity ( ) ; }
returns the current capacity of the string buffer . the capacity is the amount of storage available for newly inserted characters ; beyond which an allocation will occur .
