mmayoub

Airport system, Tester class

Aug 25th, 2017
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Tester;
  2.  
  3. import AirportPkg.Airport;
  4.  
  5. public class Tester {
  6.  
  7.     public static void main(String[] args) {
  8.         try {
  9.             // create and open an airport
  10.             Airport myAirport = new Airport();
  11.  
  12.             // wait for 100 ms
  13.             Thread.sleep(1000);
  14.  
  15.             // close the airport
  16.             myAirport.close();
  17.         } catch (InterruptedException e) {
  18.             // TODO Auto-generated catch block
  19.             e.printStackTrace();
  20.         }
  21.     }
  22. }
RAW Paste Data