List<String> strings = new LinkedList<>();
strings.add("Java");strings.add("is");
strings.add("cool");
String message = String.join(" ", strings);
//message returned is: "Java is cool"
String joinedString = String.join(" - ", "04", "05", "06"); // "04 - 05 - 06"