SHARE
TWEET

APCS2012_C2X9_ReplaceTester.java

calcpage Sep 25th, 2012 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ReplaceTester.java    MrG     2012.0924
  2. public class ReplaceTester
  3. {
  4.         public static void main(String[] args)
  5.         {
  6.                 String river = "mississppi";
  7.                 System.out.println(river);
  8.                 String newRiver = river.replace("i","!");
  9.                 System.out.println(newRiver);
  10.                 String newerRiver = newRiver.replace("s","$");
  11.                 System.out.println(newerRiver);
  12.         }
  13. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top