Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sat_final_lab;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.print("Введите строку оперативного состояния: ");
- PortSimulator portSimulator = new PortSimulator(sc.nextLine());
- System.out.println();
- System.out.println("Строка предыдущего состояния: " + portSimulator.getPreviousCondition());
- System.out.println();
- portSimulator.run();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment