Skip to content

hedza06/java-iterator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Iterators

Project demonstrates use of custom made iterators in Java programming language. An Iterator is one of many ways we can traverse a collection.

Iterator history

Iterators were first introduced in Java 1.2 as a replacement of Enumerations and:

  • introduced improved method names
  • made it possible to remove elements from a collection we're iterating over
  • doesn't guarantee iteration order

Limitations of iterator

  • Only forward direction iterating is possible
  • Replacement and addition of new element is not supported by Iterator

Source code hints

In this demo you can find the universal custom list iterator that can iterate through many types of data. Test code is placed in file IteratorMain.java.

Contribution

If someone is interesting in contribution please contact me on e-mail hedzaprog@gmail.com.

Author

Heril Muratović
Software Engineer

Mobile: +38269657962
E-mail: hedzaprog@gmail.com
Skype: hedza06
Twitter: hedzakirk
LinkedIn: https://www.linkedin.com/in/heril-muratovi%C4%87-021097132/
StackOverflow: https://stackoverflow.com/users/4078505/heril-muratovic

About

Java Iterator Demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages