मराठी

Write down the syntax to perform the following task: To replace the word "old" with the word "new" in a given String st = "old is always old". - Computer Applications

Advertisements
Advertisements

प्रश्न

Write down the syntax to perform the following task:

To replace the word "old" with the word "new" in a given String st = "old is always old".

एका वाक्यात उत्तर

उत्तर

String str = st.replace("old", "new");
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: String Handling - EXERCISES [पृष्ठ २८७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 4 String Handling
EXERCISES | Q III. 5. | पृष्ठ २८७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×