Here you can find the source of printList(List
public static void printList(List<Map<String, String>> list)
//package com.java2s; import java.util.*; public class Main { public static void printList(List<Map<String, String>> list) { for (Map<String, String> map : list) { for (Iterator<Map.Entry<String, String>> it = map.entrySet().iterator(); it.hasNext();) { Map.Entry<String, String> me = it.next(); System.out.println("key=" + me.getKey() + " value=" + me.getValue()); }//from www .ja va 2s .c o m } } }