String.replaceFirst() replace First occurrence of matching char or string .
Here are some examples with output.
Replacing char
String str = "Welcome to";  
Output is here
Welc*me to
Replacing string
String str = "Welcome to";  
Output is here
Welnete to
Note : In above code, there is one replacement.

All String functions

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer