Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import java.util.Arrays;
  2. import java.util.Collections;
  3. import java.util.Scanner;
  4.  
  5. public class App4 {
  6. public static void main(String[] args) {
  7. Scanner scan = new Scanner(System.in);
  8. String[] arr = scan.nextLine().split("//s+");
  9. int commands = scan.nextInt();
  10.  
  11. for (int i = 0; i < commands; i++) {
  12. String cmd = scan.nextLine().toLowerCase();
  13. if(cmd.equals("reverse")){
  14. //Collections.reverse(Arrays.asList(cmd));
  15.  
  16. }else if(cmd.equals("replace")){
  17.  
  18.  
  19.  
  20. }else if(cmd.equals("distinct")){ //
  21.  
  22.  
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement