Adding an Iterator to a Collection
===

Below is my learning objective.  I got it started, but I don't really know where to go from here to implement the program in main.  I would appreciate any help!

Objective:

- Add an Iterator object to the card collection
- Iterators are added to collections by creating a private inner class.
- You may use any of the inner class types that are appropriate
- Enumerators and Iterators use a large number to determine when the collection changes.
- Implement the correct methods, interfaces, and extend the appropriate classes for a class consistent with the Java API.


        public class CardCollection {
    	
    	private ArrayList<Card> cards;
    	private ArrayList<Note> notes;
     
    	public CardCollection() { //constructor initializes the two arraylists
    	  cards = new ArrayList<Card>();
    	  notes = new ArrayList<Note>();
    	 }
     
    	private class Card implements Iterable<Card> { //create the inner class
    
    		public Iterator<Card> iterator() { //create the Iterator for Card
    			return cards.iterator();
    		}
    	}
     
    	private class Note implements Iterable<Note> { //create the inner class
      
    		public Iterator<Note> iterator() { //create the Iterator for Note
    			return notes.iterator();
    		}
      
    	}
     
    	public Card cards() {
    		return new Card();
    	 }
    	 
    	 public Note notes() {
    		 return new Note();
    	 }
     
    	 public void add(Card card) {
    		 cards.add(card);
    	 }
     
    	 public void add(Note note) {
    		 notes.add(note);
    	 }
    
        }
