LangUtils { public static String enquoteAndJoin(Iterable<String> list, String separator, String prefix, String suffix) { StringBuilder s = new StringBuilder(); String sep = ""; for (String item: list) { s.append(sep).append(prefix).append(item).append(suffix); sep = separator; } return s.toString(); }  static List<T> repeat(T element, int number); static String join(List<String> list, String separator); static String enquoteAndJoin(Iterable<String> list,
            String separator, String prefix, String suffix); static String enquoteAndJoin(String[] list,
            String separator, String prefix, String suffix);  }
@Test public void enquoteAndJoin() { assertEquals("[A].[B].[C]", LangUtils.enquoteAndJoin(asList("A", "B", "C"), ".", "[", "]")); }