@Override public void run() { while (true) { System.out.println( "----\n" + "Enter a choice : \n1.Add process\n2.Display Partition\n3.exit\n" + "----------------"); choice = reader.nextInt(); switch (choice) { case 1: { System.out.println("Enter process id, burst time and size"); MVT.load_process(new Process(reader.nextInt(), reader.nextInt(), reader.nextInt())); break; } case 2: { MVT.display(); break; } case 3: System.exit(0); default: System.out.println( "-------------\n" + "Enter a choice : \n 1.Add process\n2.Display Partition\n3.Exit" + "\n--------------------------"); } } }
public static void main(String[] args) { // TODO code application logic here MVT mvt = new MVT(); MVT.create_partition(); mvt.start(); }