Here you can find the source of iterableAsString(Iterable
Parameter | Description |
---|---|
chars | the source of characters. |
public static String iterableAsString(Iterable<Character> chars)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { /**//w ww . j ava2s . c om * Convert an {@link Iterable} of {@link Character}s to String. * * @param chars * the source of characters. * @return a String containing the chars the iterable returned. */ public static String iterableAsString(Iterable<Character> chars) { StringBuilder builder = new StringBuilder(); for (Character c : chars) { builder.append(c); } return builder.toString(); } }