Answers for "how to add to a string list java"

1

add stringarrays to string list java

import java.util.Collections;

List myList = new ArrayList();
String[] myArray = new String[] {"Java", "Util", "List"};

Collections.addAll(myList, myArray);
Posted by: Guest on June-23-2021
0

adding strings in the list

#!/usr/bin/python

msg = ' '.join(['There', 'are', 'three', 'eagles', 'in', 'the', 'sky'])
print(msg)
Posted by: Guest on September-23-2021

Code answers related to "how to add to a string list java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language