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(); String str = s.replace("you","we"); System.out.println(str); } } } |
Double click to view unformatted code.