Created
February 14, 2016 18:47
-
-
Save alexejVasko/e1f991f17da86b4bf326 to your computer and use it in GitHub Desktop.
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 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