public static final String printIterable(Iterable iIterable,String sSeparator){
  StringBuffer sbRes=new StringBuffer();
  Iterator iIter=iIterable.iterator();
  while (iIter.hasNext()) {
    Object oNext=iIter.next();
    sbRes.append(oNext.toString());
    if (iIter.hasNext())     sbRes.append(sSeparator);
  }
  return sbRes.toString();
}

public static final String printIterable ( Iterable iIterable , String sSeparator ) { StringBuffer sbRes = new StringBuffer ( ) ; Iterator iIter = iIterable . iterator ( ) ; while ( iIter . hasNext ( ) ) { Object oNext = iIter . next ( ) ; sbRes . append ( oNext . toString ( ) ) ; if ( iIter . hasNext ( ) ) sbRes . append ( sSeparator ) ; } return sbRes . toString ( ) ; }
creates a formatted string representation of an iterable object using a given separator .
