String Handling: CSM-Java Programming-I Spring, 2005
String Handling: CSM-Java Programming-I Spring, 2005
Output- 18, 4
Output- 15, 4
– StringBuffer()
– StringBuffer(int size)
– StringBuffer(String str)
Output:
I Like Java!
StringBuffer Operations
• delete() - Removes the characters in a substring of this
StringBuffer. The substring begins at the specified start
and extends to the character at index end - 1 or to the end
of the StringBuffer if no such character exists. If start is
equal to end, no changes are made.