Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.         String myString = "Hello World!";
  5.         myString.replaceAll("Hello", "Goodbye");
  6.         System.out.println(myString);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement