Skip to content

Instantly share code, notes, and snippets.

@e-tverdokhleb
Last active November 9, 2015 01:27
Show Gist options
  • Save e-tverdokhleb/dc85bafccc50cca83bcc to your computer and use it in GitHub Desktop.
Save e-tverdokhleb/dc85bafccc50cca83bcc to your computer and use it in GitHub Desktop.
public class main {
public static void main(String[] args) {
String str1 = "Let us always meet each other with smile, for the smile is the beginning of love ";
System.out.println(str1.replaceAll("smile", ":)"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment