The document contains two Java programs demonstrating the use of the String and StringBuffer classes. The first program showcases various String methods such as length, substring, and replace, while the second program illustrates StringBuffer methods including append, insert, and reverse. Both programs print the results of the operations performed on the respective string objects.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views2 pages
EXP 4 java
The document contains two Java programs demonstrating the use of the String and StringBuffer classes. The first program showcases various String methods such as length, substring, and replace, while the second program illustrates StringBuffer methods including append, insert, and reverse. Both programs print the results of the operations performed on the respective string objects.