public static String iterableToString(Iterable<?> iterable){
  StringBuilder builder=new StringBuilder();
  for (  Object obj : iterable) {
    builder.append(String.format("%s\n",obj.toString()));
  }
  return builder.toString();
}

public static String iterableToString ( Iterable < ? > iterable ) { StringBuilder builder = new StringBuilder ( ) ; for ( Object obj : iterable ) { builder . append ( String . format ( "%s\n" , obj . toString ( ) ) ) ; } return builder . toString ( ) ; }
this method will format any iterable class into a simple newline delimited list .
