Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- /**replace "ICS201" with "ICS301" from statement “This is ICS2O1 Class”."
- * @author Peter Lee
- * @version 1.0 April 4th, 2012
- */
- public class Replace
- {
- public static void main (String[] args) throws IOException
- {
- InputStreamReader inStream=new InputStreamReader (System.in);
- BufferedReader stdin=new BufferedReader (inStream);
- String data="Hello All";
- data=data.replaceAll("Hello","Bye");
- System.out.println(data);
- }
- }
Add Comment
Please, Sign In to add comment