HighTechTalks DotNet Forums  

Iterator Problems

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Iterator Problems in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Harold Clements
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.