Skip to content

Instantly share code, notes, and snippets.

@alexejVasko
Created February 14, 2016 18:47
Show Gist options
  • Save alexejVasko/e1f991f17da86b4bf326 to your computer and use it in GitHub Desktop.
Save alexejVasko/e1f991f17da86b4bf326 to your computer and use it in GitHub Desktop.
package substring;
public class SubstringReplace {
public static void main(String[] args) {
String mtQuote = new String("Let us always meet each other with smile, for the smile is a beginning of love.");
System.out.println(mtQuote.replace("smile", ":)"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment