StringBuffer:length() Return the current length of the string stored in the StringBuffer. Examplelength = sb:length()