⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 person.java

📁 用Java实现的电梯模拟程序。某公司要建造一栋n层的办公楼并用“最先进“的电梯进行装备
💻 JAVA
字号:
//package wuxf;

public class Person {
  final int WAITING=0;
  final int INELEVATOR=1;
  final int GONE=-1;
  public int num=0;

  public int from=-1;
  public int to=-1;
  public int status=GONE;

  public Person(int from,int to,int status,int num){
       this.from=from;
       this.to=to;
       this.status=status;
       this.num=num;
  }
  public int  direction(){
        if(to>from) return 1;
        else return   2;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -