String string = list.stream().map(Object::toString).collect(Collectors.joining(""));
ArrayList<String> list = new ArrayList<String>();
list.add("one");
list.add("two");
list.add("three");
StringBuilder sb = new StringBuilder();
for (String s : list)
{
sb.append(s);
sb.append(" ");
}
System.out.println(sb.toString());
list.toArray(new String[0]);
import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_length = len(chosen_word)
#Create blanks
display = []
for _ in range(word_length):
display += "_"
print(f"{' '.join(display)}")