src/textgen/MyLinkedListTester.java
/** Test adding an element into the list at a specified index,
	 * specifically:
	 * public void add(int index, E element)
	 * */
Test adding an element into the list at a specified index,
specifically:
public void add(int index, E element)
Test adding an element into the list at a specified index specifically : public void add ( int index E element )
@Test
	public void testAddAtIndex()
	{
		try {
			emptyList.add(-1, 1);
			fail("Check out of bounds");
		}
		catch (IndexOutOfBoundsException e) {
		System.out.println("Index out of bounds....");
		}
	}
@ Test public void testAddAtIndex ( ) { try { emptyList . add ( - 1 , 1 ) ; fail ( "Check out of bounds" ) ; } catch ( IndexOutOfBoundsException e ) { System . out . println ( "Index out of bounds...." ) ; } }
Test adding an element into the list at a specified index,
 specifically:
 public void add(int index, E element)
Test adding an element into the list at a specified index specifically : public void add ( int index E element )
// test for the index if valid: negative