View Code of Problem 121


import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String s = scanner.nextLine();

            s=s.replace("occupation", "OH-OH-OH-QQ-PEI-PEI-SHION");
            System.out.println(s);
        }
    }
}

Double click to view unformatted code.


Back to problem 121