String Methods ->
Sunday, 25 May 2025 10:53
What are String Methods ->
String -> Data Type jo --> Character ->
Method -> action , perform on the objects (String)
[Link]() ->
String are immutable in nature -> once created it cannot be changed
Changes are only allowed during --- by the help of function ->
1. Trim() -> it remove the whitespace from both the front and the Back
2. ToUpperCase() --- character ko capital bana dega , jo already honge unko toh capital hi rkhega or jo
nhi honge unko capital bana dega
3. ToLowerCase()----character ko smallbana dega , jo already honge unko toh small hi rkhega or jo nhi
honge unko small bana dega
4. Method Chaining -> when use a method with the method ->
5. Indexof -> ki woh index hamare m exist krtha hai ya nhi krtha hia
6. Slice -> index ke hisab se aage piche le jate ho
Si ->
Ei -> not included
7. Replace ->
("x")
String Method with Argument ->
Jab aap method call krthe ho with argument
[Link]()
[Link](arg)