src/codeandchords/ModuleMenu.java
private int arrayContains(int[] array, int element) {
		if(array == null) {
			throw new IllegalArgumentException("Module_01_02.arrayContains(String[], String): array parameter is null.");
		}

		for (int i = 0; i < array.length; i++)
		{
			//    println("array[i] = " + array[i]);
			if (array[i] == element) {
				return i;
			} // if
		} // for

		return -1;
	}
/**
	 * Used in controlEvent for determining whether a given color is in specialColors;
	 * returns the position of the element if it exists in the array,
	 * or -1 if the element is not in the array.
	 * 
	 * @param array		String[] to be searched for the given element
	 * @param element	String whose position in the given array is to be returned.
	 * @return		position of the given element in the given array, or -1 
	 * 				if the element does not exist in the array.
	 */
Used in controlEvent for determining whether a given color is in specialColors;
returns the position of the element if it exists in the array,
or -1 if the element is not in the array.

@param array         String[] to be searched for the given element
@param element       String whose position in the given array is to be returned.
@return              position of the given element in the given array, or -1
if the element does not exist in the array.
Used in controlEvent for determining whether a given color is in specialColors ; returns the position of the element if it exists in the array or - 1 if the element is not in the array . @param array String [] to be searched for the given element @param element String whose position in the given array is to be returned . @return position of the given element in the given array or - 1 if the element does not exist in the array .
private int arrayContains(int[] array, int element) {
		if(array == null) {
			throw new IllegalArgumentException("Module_01_02.arrayContains(String[], String): array parameter is null.");
		}
		for (int i = 0; i < array.length; i++)
		{
			if (array[i] == element) {
				return i;
			} 
		} 
		return -1;
	}
private int arrayContains ( int [ ] array , int element ) { if ( array == null ) { throw new IllegalArgumentException ( "Module_01_02.arrayContains(String[], String): array parameter is null." ) ; } for ( int i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] == element ) { return i ; } } return - 1 ; }
Used in controlEvent for determining whether a given color is in specialColors;
 returns the position of the element if it exists in the array,
 or -1 if the element is not in the array.
Used in controlEvent for determining whether a given color is in specialColors ; returns the position of the element if it exists in the array or - 1 if the element is not in the array .
//    println("array[i] = " + array[i]); // if // for