0% found this document useful (0 votes)
4 views1 page

String and StringBuffer Methods Guide

This document lists common methods for the String and StringBuffer classes in Java, including methods to manipulate case, replace characters, trim whitespace, compare strings, extract substrings, check for presence of characters, and more. It also provides examples of using String.valueOf() and toString() to convert between primitive types and Strings.

Uploaded by

prakhar20feb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

String and StringBuffer Methods Guide

This document lists common methods for the String and StringBuffer classes in Java, including methods to manipulate case, replace characters, trim whitespace, compare strings, extract substrings, check for presence of characters, and more. It also provides examples of using String.valueOf() and toString() to convert between primitive types and Strings.

Uploaded by

prakhar20feb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

Sno.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

String Class Methods [Link] [Link] [Link]('x','y') [Link]() [Link](s2) [Link](s2) [Link]() [Link](n) [Link](s2) [Link](s2) [Link](n) [Link](n,m) [Link](p) [Link]() [Link]('x') [Link]('x',n) [Link](m,n,arr,index) startsWith() endsWith() equals vs ==

StringBuffer Methods length() capacity() setLength() charAt(n) setCharAt(index, char) insert(index,str) insert(index,char) reverse() delete(sindex,eindex) deleteCharAt(index) replace(sindex, eindex, string) substring(startindex) substring(startindex, endindex) append()

You might also like