But what i want in my project is to get first object , last object, previous etc. ...
Prasad Saya wrote:I think, first you may have to write the code without streams API (functional-style programming) using pre-Java 8 constructs and find the solution. And, then translate or refactor it into using the streams API.
Stephan van Hulst wrote:
Prasad Saya wrote:I think, first you may have to write the code without streams API (functional-style programming) using pre-Java 8 constructs and find the solution. And, then translate or refactor it into using the streams API.
I don't agree with this advice. People don't learn functional programming by translating imperative programs. It's good to get into a functional mindset straight away.
Would the dictionaries values be reset to 0 after each call?
But would that not overwrite the pre-existing vector(s)? If so, would this guarantee each vector would be different?