The document contains a Java class named StringOperations that demonstrates various string manipulation methods. It concatenates two strings, 'Hello' and 'World', and prints the concatenated result along with its length, uppercase and lowercase versions, a substring, a character at a specific index, a check for substring presence, and a replacement of a substring. This serves as a basic example of string operations in Java.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
String Functions
The document contains a Java class named StringOperations that demonstrates various string manipulation methods. It concatenates two strings, 'Hello' and 'World', and prints the concatenated result along with its length, uppercase and lowercase versions, a substring, a character at a specific index, a check for substring presence, and a replacement of a substring. This serves as a basic example of string operations in Java.