SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way would be:
String[] myArray = ...; List<String> strs = Arrays.asList(myArray);
using the handy Arrays utility class. Note, that you can even do
List<String> strs = Arrays.asList("a", "b", "c");