To create a set that consists of string elements "red", "green", and "blue", use

a. new HashSet({"red", "green", "blue"})
b. new HashSet(new String[]{"red", "green", "blue"})
c. new HashSet(Arrays.asList(new String[]{"red", "green", "blue"}))
d. new LinkedHashSet(Arrays.asList(new String[]{"red", "green", "blue"}))
e. new Set(Arrays.asList(new String[]{"red", "green", "blue"}))


cd

Computer Science & Information Technology

You might also like to view...

Consider the Countries table discussed in the text. The table has three fields - name, pop2014, and monetaryUnit - with name as the key field. Give a LINQ query that can be used to show the records from Countries in descending order based on the 2014 population.

What will be an ideal response?

Computer Science & Information Technology

General–purpose registers are _________ dependent.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In the Outlook Web App, the Subject text box is where you type a brief description of the topic of the email you are sending

Indicate whether the statement is true or false

Computer Science & Information Technology

The ____________________ List window displays the database tables and the fields they contain.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology