Skip to content

Instantly share code, notes, and snippets.

@Yur-ok
Created December 5, 2015 14:34
Show Gist options
  • Save Yur-ok/be1012bdb6339f700c96 to your computer and use it in GitHub Desktop.
Save Yur-ok/be1012bdb6339f700c96 to your computer and use it in GitHub Desktop.
Replace "smile" to ":)"
package Lesson1_frame4;
/**
* Created by Юрий on 05.12.2015.
*/
public class Replace {
public static void main(String[] args) {
String mtQoute = "Let us always meet each other with smile, for the smile is the beginning of love.";
System.out.println(mtQoute.replace("smile",":)"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment