Delete from an ArrayList in Java
<p>i have an arraylist called Module, i want to create a method that will delete a module from the ArrayList based on the index passed as the parameter.  this is what i have so far but it isn't working.  any suggestions please (beginner)?  Simon</p>

<pre><code>/**
 * This method deletes a module object from the ArrayList
 * @param theModule The module object that will be deleted from the ArraList
 */
public void deleteModule (Module theModule)
{
    modules.delete(theModule);
}
</code></pre>
