chillurbrain

Main.java

Nov 21st, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. package sat_final_lab;
  2.  
  3.  
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.         Scanner sc = new Scanner(System.in);
  10.         System.out.print("Введите строку оперативного состояния: ");
  11.         PortSimulator portSimulator = new PortSimulator(sc.nextLine());
  12.         System.out.println();
  13.         System.out.println("Строка предыдущего состояния: " + portSimulator.getPreviousCondition());
  14.         System.out.println();
  15.         portSimulator.run();
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment