Java Iterator

User Management System
Learn Kotlin, Retrofit, MVVM and MySQL using this all-in-one app. It is designed to be beginner friendly.

Iterator is an interface that allows iteration over a sequence of objects.

import java.util.Iterator;

 * Utility methods to help in Iterable interactions.
public final class IterableUtil {

    /** Compares two sequences of values and returns true if sequence members are equal and in the same order */
    public static <T> boolean sequenceEqual(Iterable<T> one, Iterable<T> two) {
        Iterator<T> iter1 = one.iterator();
        Iterator<T> iter2 = two.iterator();

        while (iter1.hasNext() && iter2.hasNext()) {
            if ( != {
                return false;
        return (!iter1.hasNext() && !iter2.hasNext());

NB/= More documentation coming soon.

Android MySQL Retrofit2 Multipart CRUD,Search,Pagination rating

When I was a 2nd year Software Engineering student, I buillt a now defunct online tool called Camposha(from Campus Share) using my then favorite language C#(ASP.NET) to compete OLX in my country(Kenya). The idea was to target campus students in Kenya. I got a few hundred signups but competing OLX proved too daunting. I decided to focus on my studies, learning other languages like Java,Python,Kotlin etc while meanwhile publishing tutorials at my YouTube Channel ProgrammingWizards TV which led to this site( Say hello or post me a suggestion: . Follow me below; Github , and on my channel: ProgrammingWizards TV

We will be happy to hear your thoughts

Leave a reply

95 − = ninety

Reset Password
Compare items
  • Total (0)
Shopping cart