package dmi_demo; import java.io.IOException; import java.sql.SQLException; public class Main { public static void main(String[] args) { try { // Lots of different actions to perform here, and most not all // at once. I could create a nice menu interface, but I don't // see an urgent need for one yet. So, just comment out the parts // that aren't in use for now. //Initializer c = new Initializer(); //c.populateDB(); //c.setPartPrices(); //c.setCompanyRoles(); //ProblemGenerator g = new ProblemGenerator(); //g.AssignCompanyRequests(); //Here's the part that actually solves the problem. ProblemSolver s = new ProblemSolver(); s.solve(); } catch (SQLException e) { System.out.println("SQL exception while opening database: "+e.getMessage()); } catch (IOException e) { System.out.println("IO exception while opening database: "+e.getMessage()); } catch (ClassNotFoundException e) { System.out.println("Class not found exception opening database: "+e.getMessage()); } } }