CS计算机代考程序代写 Java import java.io.* ;// for the IOException

import java.io.* ;// for the IOException

class Run {

public static void main (String[] args) throws IOException {

String fname;

if (args.length == 0) {
System.out.print(“Enter a file name: “);
fname = SimIO.readLine();
} else {
fname = args[0];
}

Sim.load(fname) ;
Sim.run() ;
}
}