Iterator Problems -
10-27-2004
, 02:17 PM
I have a problem with the Iterator in J#. In standard Java this code would
have run through all the elements in ‘myVector’ and would have worked fine. I
have imported both java.util.Vector and java.util.Iterator.
Iterator myIterator = myVector.iterator();
while (myIterator.hasNext())
{
AnObject myObject = (AnObject) myIterator.next();
}
In J# I receive this error and I don’t know how to fix it
Cannot find method 'iterator()' in 'java.util.Vector'
If anyone has any clues I would be very grateful.
Thanks in advance,
Harold Clements |