Java Iterator printIterator(Iterator> it)

Here you can find the source of printIterator(Iterator> it)

Description

print Iterator

License

Open Source License

Declaration

public static <K, V> void printIterator(Iterator<Map.Entry<K, V>> it) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Iterator;
import java.util.Map;

public class Main {
    public static <K, V> void printIterator(Iterator<Map.Entry<K, V>> it) {
        while (it.hasNext()) {
            Map.Entry<K, V> entry = it.next();
            System.out.println(entry.getKey() + "  " + entry.getValue());
        }/*from  ww  w  . jav  a2  s .  c  o m*/
    }
}

Related

  1. nextPermutation(Iterator> it)
  2. printContainer(Iterator it, String sep)
  3. printElements(String desc, Iterator i)
  4. printIterator(final Iterator iterator)
  5. printIterator(Iterator i, String header)
  6. put(String key, Iterator value)
  7. putAllFromAll(Map map, Iterator> mapsIterator)
  8. read(Iterator it, E[] array)
  9. reduceSet(Iterator> values)