/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		List<String> container =
		    Arrays.asList("word_from_array", "another_word_from_array", "one_more_word_from_array");

		StringJoiner joiner = new StringJoiner(",");
        for (String s : container)
            joiner.add(s);
        String result = joiner.toString();
        System.out.println(result);
	}
}