Returns the character at the specified index in the given string buffer object.
Syntax
charAt( stringbuffer , index )
stringbuffer.charAt( index )
Parameters
stringbuffer
|
the stringbuffer object to use.
|
index
|
the offset [ 0 , length - 1 ] into the given stingbuffer object.
|
Returns
string
|
containing the character at the specified index into the given stringbuffer object.
|
Example
println( sb.charAt( index ) )
|