Java Iterable getMessageString(Iterable msgs)

Here you can find the source of getMessageString(Iterable msgs)

Description

get Message String

License

Apache License

Declaration

public static String getMessageString(Iterable msgs) 

Method Source Code

//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*/
}

Related

  1. getAny(Iterable iterable)
  2. getByIndex(Iterable iterable, int index)
  3. getElement(final Iterable iterable, int index)
  4. getIdenticalElement(Iterable iterable)
  5. getLongestCommonToken(Iterable iterable, char tokenSeparatorChar)
  6. getUnique(Iterable iterable)
  7. implodeStrings(Iterable strings, String glue)
  8. indexOfSame(Iterable iterable, T obj)
  9. internalSeparate(StringBuilder buff, Iterable args, String separator, String useWhenNone)