9
Presentation Of String Handling Presented By: DG Kaur

String java

  • Upload
    774474

  • View
    43

  • Download
    7

Embed Size (px)

Citation preview

Page 1: String java

Presentation Of String Handling

Presented By:

DG Kaur

Page 2: String java

What Is string Handling?

Page 3: String 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 java

Special String Operations

• String Concatenation.

• String Concatenation with other data types.

Page 5: String 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 java

String Comparison

• Equals() and equalsIgnorecase()

• StartWith() & endWith()

• Equals()versus==

• ComapreTo()

Page 7: String java

Modify a String

• substring()

• concat()

• replace()

• trim()

Page 8: String java

String Buffer?

• Length() and capacity()

• Charat() and setCharAt()

• Append()

• Delete() and deleteCharAt()

Page 9: String java

ThanK YoU