Created
December 5, 2015 14:34
-
-
Save Yur-ok/be1012bdb6339f700c96 to your computer and use it in GitHub Desktop.
Replace "smile" to ":)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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