Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ReplaceTester.java MrG 2011.0922
- public class ReplaceTester
- {
- public static void main(String[] args)
- {
- String ross = "Mississippi";
- System.out.println(ross);
- String newRoss = ross.replace("i","!");
- System.out.println(newRoss);
- newRoss = ross.replace("s","$");
- System.out.println(newRoss);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement