Categories
What is a "list-array of string literals"?
Good afternoon! I have the following task: "Create a list-array of string literals". What is required of me? Create a list consisting of arrays of string literals?
Answer the question
In order to leave comments, you need to log in
List<String> stringList = new ArrayList<>(Arrays.asList("String1", "String2", "String3"));
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question