Advertisement
mmayoub

Airport system, Tester class

Aug 25th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement