Peter Taucher wrote:
Ana Suvari wrote:The behaviour is C++ Iterators and Vectors. That should be a Java version of the first code I posted at the top.
And what exactly does the first (C++) code do? I haven't coded C++ since about seven or eight years, so please enlighten me...
I haven't taken C++ for a while but that does not stop the Java Prof for making this assignment.
So, I have to assume that Java's Vector and Iterators are made different from C++ or the Java Prof would not be making us do this.
Here's the C++ code that it should simulate close to.
v.begin() should return an integer index to the first element. But I don't get how does myIter equal to v.begin() if it's an integer? The prof made it sound like it should be easy peasy but I guess I still don't have any ideas.
The myIter class should be able to iterate through each element in myVector and display each of them.
I am not seeing what the Prof wants me to do that she thinks is so easy.