Upload
774474
View
117
Download
0
Embed Size (px)
Citation preview
Presentation Of String Handling
Presented By:DG Kaur
What Is string Handling?
What Is String Constructor?
• The String class support several constructors.
• To create an empty String you can call the default constructor.
• Constructor that we use to create the array of character.
Special String Operations
• String Concatenation.
• String Concatenation with other data types.
Character Extraction• CharAt() To extract a single character from a
string.
• You can refer directly to an individual char. Through a charAt().
String Comparison• Equals() and equalsIgnorecase()
• StartWith() & endWith()
• Equals()versus==
• ComapreTo()
Modify a String• substring()
• concat()
• replace()
• trim()
String Buffer?• Length() and capacity()
• Charat() and setCharAt()
• Append()
• Delete() and deleteCharAt()
ThanK YoU