Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- import java.util.Collections;
- import java.util.Scanner;
- public class App4 {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String[] arr = scan.nextLine().split("//s+");
- int commands = scan.nextInt();
- for (int i = 0; i < commands; i++) {
- String cmd = scan.nextLine().toLowerCase();
- if(cmd.equals("reverse")){
- //Collections.reverse(Arrays.asList(cmd));
- }else if(cmd.equals("replace")){
- }else if(cmd.equals("distinct")){ //
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement