public static void main(String[] args) {

		if (args.length < 2) {
			System.err.println("Your input is wrong!");
			return;
		}
		int countThreads;

		countThreads = Integer.parseInt(args[1]);

		if (countThreads < 1) {
			System.err.println("Your input is wrong!");
			return;
		}

		String inputFile = args[0];

		try {

			new Dispatcher().launchThreads(inputFile, countThreads);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}

	}