src/codeandchords/ModuleMenu.java
private void inputNumErrorCheck(int inputNum) {
		if (inputNum >= this.module.getTotalNumInputs()) {
			IllegalArgumentException iae = new IllegalArgumentException("ModuleMenu.inputNumErrorCheck(int): int parameter " + inputNum + " is greater than " + this.module.getTotalNumInputs() + ", the number of inputs.");

			iae.printStackTrace();
			throw iae;
		}
		if (inputNum < 0) {
			IllegalArgumentException iae = new IllegalArgumentException("ModuleMenu.inputNumErrorCheck(int): int parameter is " + inputNum + "; must be 1 or greater.");
			iae.printStackTrace();
			throw iae;
		}
	}
/**
	 *  Error checker; rejects numbers that are greater than or equal to the number of inputs or less than 0.
	 *
	 *  @param   inputNum  an int that is to be checked for suitability as an input line number.
	 *  @param   String    name of the method that called this method, used in the exception message.
	 */
Error checker; rejects numbers that are greater than or equal to the number of inputs or less than 0.
@param   inputNum  an int that is to be checked for suitability as an input line number.
@param   String    name of the method that called this method, used in the exception message.
Error checker ; rejects numbers that are greater than or equal to the number of inputs or less than 0 . @param inputNum an int that is to be checked for suitability as an input line number . @param String name of the method that called this method used in the exception message .
private void inputNumErrorCheck(int inputNum) {
		if (inputNum >= this.module.getTotalNumInputs()) {
			IllegalArgumentException iae = new IllegalArgumentException("ModuleMenu.inputNumErrorCheck(int): int parameter " + inputNum + " is greater than " + this.module.getTotalNumInputs() + ", the number of inputs.");
			iae.printStackTrace();
			throw iae;
		}
		if (inputNum < 0) {
			IllegalArgumentException iae = new IllegalArgumentException("ModuleMenu.inputNumErrorCheck(int): int parameter is " + inputNum + "; must be 1 or greater.");
			iae.printStackTrace();
			throw iae;
		}
	}
private void inputNumErrorCheck ( int inputNum ) { if ( inputNum >= this . module . getTotalNumInputs ( ) ) { IllegalArgumentException iae = new IllegalArgumentException ( "ModuleMenu.inputNumErrorCheck(int): int parameter " + inputNum + " is greater than " + this . module . getTotalNumInputs ( ) + ", the number of inputs." ) ; iae . printStackTrace ( ) ; throw iae ; } if ( inputNum < 0 ) { IllegalArgumentException iae = new IllegalArgumentException ( "ModuleMenu.inputNumErrorCheck(int): int parameter is " + inputNum + "; must be 1 or greater." ) ; iae . printStackTrace ( ) ; throw iae ; } }
Error checker; rejects numbers that are greater than or equal to the number of inputs or less than 0.
Error checker ; rejects numbers that are greater than or equal to the number of inputs or less than 0 .