Here you can find the source of getMessageString(Iterable msgs)
public static String getMessageString(Iterable msgs)
//package com.java2s; //License from project: Apache License import java.util.Iterator; public class Main { public static String getMessageString(Iterable msgs) { String str = ""; Iterator iter = msgs.iterator(); while (iter.hasNext()) str += iter.next() + ", "; return str; }/*from w w w.j av a 2s . com*/ }