src/textgen/MyLinkedList.java
public void add(int index, E element ) 
	{

        if (index < 0 || index > size)
        {
            throw new IndexOutOfBoundsException("The index value is invalid");
        }
        if (element==null)
        {
            throw new NullPointerException("Null values are not allowed");
        }
        LLNode<E> curr = getNode(index);
        LLNode<E> newNode=  new LLNode<E>(element, curr.prev);
        size++;

		// TODO: Implement this method (DONE)
	}
/**
	 * Add an element to the list at the specified index
	 * @param //The index where the element should be added
	 * @param  element The element to add
	 */
Add an element to the list at the specified index
@param //The index where the element should be added
@param  element The element to add
Add an element to the list at the specified index @param // The index where the element should be added @param element The element to add
public void add(int index, E element ) 
	{
        if (index < 0 || index > size)
        {
            throw new IndexOutOfBoundsException("The index value is invalid");
        }
        if (element==null)
        {
            throw new NullPointerException("Null values are not allowed");
        }
        LLNode<E> curr = getNode(index);
        LLNode<E> newNode=  new LLNode<E>(element, curr.prev);
        size++;
	}
public void add ( int index , E element ) { if ( index < 0 || index > size ) { throw new IndexOutOfBoundsException ( "The index value is invalid" ) ; } if ( element == null ) { throw new NullPointerException ( "Null values are not allowed" ) ; } LLNode < E > curr = getNode ( index ) ; LLNode < E > newNode = new LLNode < E > ( element , curr . prev ) ; size ++ ; }
Add an element to the list at the specified index
 @param //The index where the element should be added
 @param  element The element to add
Add an element to the list at the specified index @param // The index where the element should be added @param element The element to add
// TODO: Implement this method (DONE)