Example & Tutorial understanding programming in easy ways.

If an ArrayList has to be iterate to read data only, what are the possible ways and which is the fastest?

We can read data two ways
1:- using for loop like use get(int index) method.
2:- using iterator of ArrayList.

The first option is faster than using iterator. Because value stored in ArrayList is indexed access. 

Read More →