该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
mgr.setData(mgr.nameDvd, mgr.state, mgr.customer, mgr.custDvd, mgr.time);
/*创建DVDctm对象,加载数据*/
DVDctm ctm=new DVDctm();
ctm.setData(ctm.nameDvd, ctm.state, ctm.customer, ctm.custDvd, ctm.time, ctm.pswCust);
MainMenu mm=new MainMenu();
mm.mainMenu();
}
}
//主菜单
import java.util.Scanner;
public class MainMenu {
String[] nameDvd=new String[50]; //储存DVD名称
int[] state=new int[50]; //储存DVD状态
String[][] time=new String[50][50]; //借出DVD时间
String[] customer=new String[50]; //储存用户代号
String[] pswCust=new String[50]; //储存用户密码
String[][] custDvd=new String[50][50]; //储存用户dvd信息
public void setData(String[] nameDvd,int[] state,String[] customer,String[][] custDvd,String[][] time,String[] pswCust){
this.nameDvd=nameDvd;
this.state=state;
this.customer=customer;
this.custDvd=custDvd;
this.time=time;
this.pswCust=pswCust;
}
/**
* 创建Data对象
*/
Data data=new Data();
/**
* 初始化数据
*/
public void setData(){
data.initial();
}
/**
* 系统登录菜单
*/
public void mainMenu(){
/*创建DVDMgr、DVDctm对象*/