9
Presentation Of String Handling Presented By: DG Kaur

String handling in_java

  • Upload
    774474

  • View
    117

  • Download
    0

Embed Size (px)

Citation preview

Page 1: String handling in_java

Presentation Of String Handling

Presented By:DG Kaur

Page 2: String handling in_java

What Is string Handling?

Page 3: String handling in_java

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.

Page 4: String handling in_java

Special String Operations

• String Concatenation.

• String Concatenation with other data types.

Page 5: String handling in_java

Character Extraction• CharAt() To extract a single character from a

string.

• You can refer directly to an individual char. Through a charAt().

Page 6: String handling in_java

String Comparison• Equals() and equalsIgnorecase()

• StartWith() & endWith()

• Equals()versus==

• ComapreTo()

Page 7: String handling in_java

Modify a String• substring()

• concat()

• replace()

• trim()

Page 8: String handling in_java

String Buffer?• Length() and capacity()

• Charat() and setCharAt()

• Append()

• Delete() and deleteCharAt()

Page 9: String handling in_java

ThanK YoU