Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pckg1;
- import java.util.Random;
- public class AirWays extends Thread {
- private static int wayNum = 0;
- private int localWayNum;
- boolean isOpen = true;
- Random rnd = new Random();
- public AirWays(){
- wayNum +=1;
- localWayNum = wayNum;
- System.out.println("Ways Number" +localWanNum + "is Ready for trav");
- }
- }
- =================================================================
- package pckg1;
- public class AirPlane extends Thread{
- private static int getAirPlaneNum = 0;
- private int airPlaneNum;
- public AirPlane()
- {
- this.airPlaneNum = getAirPlaneNum;
- System.out.println("Airplane #" + airPlaneNum + "created");
- }
- @Override
- public void run() {
- System.out.println("Customer #" + airPlaneNum + "Is Waiting");
- while()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement