][j]=1;}}}System.out.println("位示图----------------");print(a);System.out.println("置换空间--------------");print(d);}publicstaticvoidgo(){while(true){System.out.println("=======================================================================");System.out.println("1:进程创建");System.out.println("2:进程到时");System.out.println("3:进程阻塞");System.out.println("4:进程唤醒");System.out.println("5:进程结束");System.out.println("6:逻辑地址转换为物理地址");System.out.println("7:查看页表");System.out.println("8:显示位示图和置换空间");System.out.println("9:查看置换次数和缺页率");System.out.println("0:退出-->");try{inti=Integer.parseInt(br.readLine());switch(i){case0:System.exit(0);case1:createNewProcess();break;case2:switchCurrentProcess();break;case3:blockCurrentProcess();break;case4:wakeupBlockedProcess();break;case5:terminateCurrentProcess();break;case6: