RGAlex

The Matrix - Ploblem O1

Mar 24th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class TheMatrix {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         StringBuilder input = new StringBuilder(scanner.nextLine());
  7.         String command;
  8.         while (!"  ".equals(command = scanner.nextLine())) {
  9.             String[] type = command.split("");
  10.             switch (type[0]) {
  11.                 case "  ":
  12.                     break;
  13.                 case "  ":
  14.                     break;
  15.                 case "  ":
  16.                     break;
  17.             }
  18.         }
  19.         System.out.println("" + input);
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment