title: Implementing Iterable in Java remove() and iterator()
body: <p>I am trying to implement an Iterator with Iterable in Java, here is what I have so far:</p>
  
  <pre><code>public class keysIterator&lt;A&gt; implements Iteratble&lt;A&lt;{
       A[] elements;
       int nextElement; 
  
  keysIterator(A[] elements, int nextElement) {
      this.elements = elements;
      this.nextElement = 0;
  }
  
  public boolean hasNext() {
      return this.nextElement &lt; elements.length;
  }
  
  public A next() {
      A result = elements[nextElement];
      nextElement = nextElement + 1;
      return result;
  }
  
  public void remove() {
      // TODO Auto-generated method stub   
  }
  
  public Iterator&lt;A&gt; iterator() {
      // TODO Auto-generated method stub
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I need help writing the remove and iterator methods, any assistance is greatly appericated.</p>
  
  <p>Thank you.</p>