0% found this document useful (0 votes)
9 views2 pages

Java String Methods Example

This Java program demonstrates various string manipulation methods. It showcases operations such as finding string length, character access, case conversion, comparison, concatenation, and substring extraction. The program also includes methods to check for substring presence, starting and ending characters, and trimming whitespace.

Uploaded by

aryanpatil4005
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Java String Methods Example

This Java program demonstrates various string manipulation methods. It showcases operations such as finding string length, character access, case conversion, comparison, concatenation, and substring extraction. The program also includes methods to check for substring presence, starting and ending characters, and trimming whitespace.

Uploaded by

aryanpatil4005
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Practical No: 4

Sub:java
Roll No:2473164

class stringmt
{
public static void main(String args[])
{
String s1 = "Hello World";
String s2 = "HELLO";
String s3 = "Java Programming ";
String s4 = "Hello";
String s5 = "World";

[Link]([Link]());
[Link]([Link](1));
[Link]([Link]());
[Link]([Link]());
[Link]([Link](s4));
[Link]([Link](s4));
[Link]([Link](s5));
[Link]([Link](" ").concat(s5));
[Link]([Link]("World"));
[Link]([Link]("Hello"));
[Link]([Link]("World"));
[Link]([Link]('o'));
[Link]([Link]('o'));
[Link]([Link](0,5));
[Link]([Link]("World","Java"));
[Link]([Link]());

}
}
Output:

You might also like