Computer Applications

Write down the syntax to replace the word "old" with the word "new" in a given String st = "old is always old"

Java String Handling

50 Likes

Answer


String str = st.replace("old", "new");

Answered By

34 Likes


Related Questions