public class SportCarHouse implements CarIterator { List sportsCars; public List getCars() { return sportsCars; } public Iterator createIterator() { return sportsCars.iterator(); } }
C:\Documents and Settings\20818781\Desktop\Pattern_iterator\SportCarHouse.java:4: cannot find symbol symbol : class List location: class SportCarHouse List sportsCars; ^ C:\Documents and Settings\20818781\Desktop\Pattern_iterator\SportCarHouse.java:19: cannot find symbol symbol : class List location: class SportCarHouse public List getCars() ^ 2 errors
Iterator
List
import java.util.List
import java.util.*;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)