M
M
muzclubs2017-03-20 19:50:03
Java
muzclubs, 2017-03-20 19:50:03

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

1 answer(s)
G
gleendo, 2017-03-20
@muzclubs

List<String> stringList = new ArrayList<>(Arrays.asList("String1", "String2", "String3"));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question