Which of the following is correct to create a list from an array?

a. new List({"red", "green", "blue"})
b. new List(new String[]{"red", "green", "blue"})
c. Arrays.asList(new String[]{"red", "green", "blue"})
d. new ArrayList(new String[]{"red", "green", "blue"})
e. new LinkedList(new String[]{"red", "green", "blue"})

c

Computer Science & Information Technology

You might also like to view...

Which of the following memory types is the MOST current?

A. DDR B. RAMBUS C. DRAM D. SDRAM

Computer Science & Information Technology

What part of the path to a file indicates how the file is organized or formatted?

A. subdirectory B. filename C. root directory D. file extension

Computer Science & Information Technology