Self-Review Questions
- What is a Set? List? Map?
- What is an iterator and why are iterators necessary?
- Why can't you make an object of type
ArrayList<int>
? What should you do instead?
- Implement a method that prints a given ArrayList<String> using an Iterator interface
- Implement a method that prints a given ArrayList<String> using a for-each loop
- What are the advantages of using generics?
- Are generics available at runtime?