Пример #1
0
  public static void main(String[] args) {
    Management m = new Management();

    int input = 0;
    m.init();
    while (true) {
      m.showList();

      switch (input = m.selectList()) {
        case 1:
          m.insertInfo();
          break;

        case 2:
          m.sortByRank();
          m.showGradeByRank();
          break;

        case 3:
          m.sortByNum();
          m.showGradeByNum();
          break;

        case 4:
          m.showGradeInDetail();
          break;

        case 5:
          m.changePeople();
          break;

        case 6:
          m.showSelectDelete();
          m.deleteInfo();
          break;

        case 7:
          System.exit(0);
      }
    }
  }