src/codeandchords/input/Input.java
protected void inputNumErrorCheck(int inputNum, String method) {
		if (inputNum >= this.adjustedNumInputs) {
			IllegalArgumentException iae = new IllegalArgumentException("Input.inputNumErrorCheck(int), from " + method + ": int parameter " + inputNum + " is greater than " + this.adjustedNumInputs + ", the number of inputs.");
			iae.printStackTrace();
			throw iae;
		}
		if (inputNum < 0) {
			IllegalArgumentException iae = new IllegalArgumentException("Input.inputNumErrorCheck(int), from " + method + ": int parameter is " + inputNum + "; must be 1 or greater.");
			iae.printStackTrace();
			throw iae;
		}
	}
/**
	 *  Error checker for ints sent to methods such as getFund, getAmplitude, etc.;
	 *  rejects numbers that are greater than the number of inputs or less than 1.
	 *
	 *  @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 for ints sent to methods such as getFund, getAmplitude, etc.;
rejects numbers that are greater than the number of inputs or less than 1.

@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 for ints sent to methods such as getFund getAmplitude etc . ; rejects numbers that are greater than the number of inputs or less than 1 . @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 .
protected void inputNumErrorCheck(int inputNum, String method) {
		if (inputNum >= this.adjustedNumInputs) {
			IllegalArgumentException iae = new IllegalArgumentException("Input.inputNumErrorCheck(int), from " + method + ": int parameter " + inputNum + " is greater than " + this.adjustedNumInputs + ", the number of inputs.");
			iae.printStackTrace();
			throw iae;
		}
		if (inputNum < 0) {
			IllegalArgumentException iae = new IllegalArgumentException("Input.inputNumErrorCheck(int), from " + method + ": int parameter is " + inputNum + "; must be 1 or greater.");
			iae.printStackTrace();
			throw iae;
		}
	}
protected void inputNumErrorCheck ( int inputNum , String method ) { if ( inputNum >= this . adjustedNumInputs ) { IllegalArgumentException iae = new IllegalArgumentException ( "Input.inputNumErrorCheck(int), from " + method + ": int parameter " + inputNum + " is greater than " + this . adjustedNumInputs + ", the number of inputs." ) ; iae . printStackTrace ( ) ; throw iae ; } if ( inputNum < 0 ) { IllegalArgumentException iae = new IllegalArgumentException ( "Input.inputNumErrorCheck(int), from " + method + ": int parameter is " + inputNum + "; must be 1 or greater." ) ; iae . printStackTrace ( ) ; throw iae ; } }
Error checker for ints sent to methods such as getFund, getAmplitude, etc.
Error checker for ints sent to methods such as getFund getAmplitude etc .