string handling in_java

9
Presentation Of String Handling Presented By: DG Kaur

Upload: 774474

Post on 12-Feb-2017

117 views

Category:

Education


0 download

TRANSCRIPT

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