Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I dnt understand .how position variable is working. From where it would get value ? Can somebody please answer . Thanks!
- Vikash Saini
How do I change the destination path for the written excel file?
- Suruchi
HasNext() and Next() if called one after other, your implementation will not work. you need to keep track if HasNext called before and return the Channel c in Next() before calling get(position) again. Otherwise, hasNext() had moved you to next and calling Next() after , will move you one more place.
- asu
Very good example…learnt completely about how iterator works…Thanks for writing !!
- Monika
I see int position is not initialized. Doesnt it supposed to be ?
- PriyankaNeeli
Very lucid explanations; Congrats for such a tutorial with great clarity! One thing, I would like to point out on the code for the Channel POJO class: Don’t we need to override equals and hashCode methods for removal of Channels from the Collection implementation class?
- Indukumar Bhayani
sir aapne isme structure of iterator bhi mention karna tha usse aur acchi se samaj aata tha well explanation is nice
- yash
Is there any reason why you provided new variable for list in iterator? -> private List channels; You could refer from Inner Class to ChannelCollectionImpl private List channelsList;
- Korges