Here you can find the source of join(final List list, final String conjunction)
public static String join(final List list, final String conjunction)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static String join(final List list, final String conjunction) { final StringBuilder builder = new StringBuilder(); for (int i = 0; i < list.size() - 1; i++) { builder.append(list.get(i)).append(conjunction); }/* www . j a v a 2s . c om*/ builder.append(list.size() - 1); return builder.toString(); } }