Last active
November 15, 2018 08:26
-
-
Save canokay/5a799714a4563a3b355813df78a02bde to your computer and use it in GitHub Desktop.
Java Replace Example
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
public class ReplaceExample { | |
public static void main(String[] args){ | |
String yazi= "merhaba dünya"; | |
System.out.println(yazi.replace("r","s")); | |
System.out.println(yazi.replace("merhaba","hello")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment