Creating a partial directory of Grinnell courses Course directory listing through print method Directory Listing LIN 205.01: Credits: 4, Computational Linguistics LIN 114.01: Credits: 4, Introduction to General Linguistics HIS 336.01: Credits: 4, The European Metropolis HIS 242.01: Credits: 4, The Rise and Fall of the Soviet Union HIS 225.01: Credits: 4, Native American History, 1941-1865 CSC 322.01: Credits: 2, Team Software Community Project CSC 321.01: Credits: 2, Software Design Principles and Practices CSC 301.01: Credits: 4, Analysis of Algorithms CSC 281.01: Credits: 1, Learning from CS Alumni CSC 232.01: Credits: 2, Human-Computer Interaction CSC 214.01: Credits: 2, Computer and Newtork Security CSC 213.01: Credits: 4, Operating Systems CSC 207.01: Credits: 4, Algorithms and Object-oriented Design CSC 205.01: Credits: 4, Computational Linguistics CSC 161.01: Credits: 4, Imperative Problem Solving and Data Structures CSC 161.03: Credits: 4, Imperative Problem Solving and Data Structures CSC 151.01: Credits: 4, Functional Problem Solving CSC 151.02: Credits: 4, Functional Problem Solving End of Listing Course directory listing through default iterator LIN 205.01: Credits: 4, Computational Linguistics LIN 114.01: Credits: 4, Introduction to General Linguistics HIS 336.01: Credits: 4, The European Metropolis HIS 242.01: Credits: 4, The Rise and Fall of the Soviet Union HIS 225.01: Credits: 4, Native American History, 1941-1865 CSC 322.01: Credits: 2, Team Software Community Project CSC 321.01: Credits: 2, Software Design Principles and Practices CSC 301.01: Credits: 4, Analysis of Algorithms CSC 281.01: Credits: 1, Learning from CS Alumni CSC 232.01: Credits: 2, Human-Computer Interaction CSC 214.01: Credits: 2, Computer and Newtork Security CSC 213.01: Credits: 4, Operating Systems CSC 207.01: Credits: 4, Algorithms and Object-oriented Design CSC 205.01: Credits: 4, Computational Linguistics CSC 161.01: Credits: 4, Imperative Problem Solving and Data Structures CSC 161.03: Credits: 4, Imperative Problem Solving and Data Structures CSC 151.01: Credits: 4, Functional Problem Solving CSC 151.02: Credits: 4, Functional Problem Solving End of Listing Testing default iterator hasNext at start:true hasNext again: true next - 1: LIN 205.01: Credits: 4, Computational Linguistics next - 2: LIN 114.01: Credits: 4, Introduction to General Linguistics next - 3: HIS 336.01: Credits: 4, The European Metropolis hasNext after 3:true hasNext again: true next in loop: HIS 242.01: Credits: 4, The Rise and Fall of the Soviet Union next in loop: HIS 225.01: Credits: 4, Native American History, 1941-1865 next in loop: CSC 322.01: Credits: 2, Team Software Community Project next in loop: CSC 321.01: Credits: 2, Software Design Principles and Practices next in loop: CSC 301.01: Credits: 4, Analysis of Algorithms next in loop: CSC 281.01: Credits: 1, Learning from CS Alumni next in loop: CSC 232.01: Credits: 2, Human-Computer Interaction next in loop: CSC 214.01: Credits: 2, Computer and Newtork Security next in loop: CSC 213.01: Credits: 4, Operating Systems next in loop: CSC 207.01: Credits: 4, Algorithms and Object-oriented Design next in loop: CSC 205.01: Credits: 4, Computational Linguistics next in loop: CSC 161.01: Credits: 4, Imperative Problem Solving and Data Structures next in loop: CSC 161.03: Credits: 4, Imperative Problem Solving and Data Structures next in loop: CSC 151.01: Credits: 4, Functional Problem Solving next in loop: CSC 151.02: Credits: 4, Functional Problem Solving hasNext at end: falseiterator at end, so next threw exception Testing iterator with 2-credit courses hasNext at start:true hasNext again: true next - 1: CSC 322.01: Credits: 2, Team Software Community Project hasNext after 1:true next - 2: CSC 321.01: Credits: 2, Software Design Principles and Practices next - 3: CSC 232.01: Credits: 2, Human-Computer Interaction hasNext after 3:true hasNext again: true next in loop: CSC 214.01: Credits: 2, Computer and Newtork Security hasNext at end: falseiterator at end, so next threw exception Testing iterator with 2-credit courses and remove iterator next not called, so cannot remove hasNext at start:true hasNext again: true next - 1: CSC 322.01: Credits: 2, Team Software Community Project hasNext after 1:true next - 2: CSC 321.01: Credits: 2, Software Design Principles and Practices iterator next called twice, so cannot remove next - 3: CSC 232.01: Credits: 2, Human-Computer Interaction hasNext after 3:false hasNext again: false hasNext at end: falseiterator at end, so next threw exception Course directory listing after remove calls LIN 205.01: Credits: 4, Computational Linguistics LIN 114.01: Credits: 4, Introduction to General Linguistics HIS 336.01: Credits: 4, The European Metropolis HIS 242.01: Credits: 4, The Rise and Fall of the Soviet Union HIS 225.01: Credits: 4, Native American History, 1941-1865 CSC 322.01: Credits: 2, Team Software Community Project CSC 301.01: Credits: 4, Analysis of Algorithms CSC 281.01: Credits: 1, Learning from CS Alumni CSC 214.01: Credits: 2, Computer and Newtork Security CSC 213.01: Credits: 4, Operating Systems CSC 207.01: Credits: 4, Algorithms and Object-oriented Design CSC 205.01: Credits: 4, Computational Linguistics CSC 161.01: Credits: 4, Imperative Problem Solving and Data Structures CSC 161.03: Credits: 4, Imperative Problem Solving and Data Structures CSC 151.01: Credits: 4, Functional Problem Solving CSC 151.02: Credits: 4, Functional Problem Solving End of Listing