To create a list to store integers, use:________

a. ArrayList list = new ArrayList();
b. ArrayList list = new ArrayList();
c. ArrayList list = new ArrayList();
d. ArrayList list = new ArrayList();

Answers

Answer 1

Answer:

ArrayList<Integer> list = new ArrayList<>();

Explanation:

From the list of given options a to d

ArrayList represents the list name

Also, the syntax is similar to java programming language. Hence, I'll answer this question base on the syntax of Java programming language.

In java, the syntax to declare a list is

[Variable-name]<list-type> list = [Variable-name]<list-type>();

Replace [Varable-name] with ArrayList

ArrayList<list-type> list = ArrayList<list-type>();

From the question, the list is meant to store integers;

So, replace list-type with integer...

This gives

ArrayList<Integer> list = new ArrayList<>();


Related Questions

{Netiquette Question Worth 50 points}

[Which would be a responsible use of technology used by victims of cyber bullying]

•Finding ways to strike back at bullies online

•Buying software that allows them to track down bullies

•Changing passwords and screen names regularly

•pretending to be someone else to hide their identity

Answers

Answer:

Changing passwords and screen names regularly

Explanation:

I did it on edgenuity

Explain why computer users should use the cloud?

Answers

Developing in the cloud enables users to get their applications to market quickly. Hardware failures do not result in data loss because of networked backups. Cloud computing uses remote resources, saving organizations the cost of servers and other equipment.

Which attitudes are most common among successful IT professionals?

Answers

Answer:

understanding the problem very well

writing documention to every piece of code you write

write clear and concise code

follow Industry accepted format for data storage

avoid recursion if possible

write modular code

Other Questions
Verizon offers two billing plans for local calls. Plan 1 charges $30 per month for unlimited calls, and Plan 2 charges $11 per month plus $0.04 per call. For how many monthly calls is Plan 1 more cost effective than Plan 2? Nadia suspects Nick is lying because he keeps repeating the same details while explaining why he was late for their study group. As this example shows, _____________ communication can be counterproductive. (a)(i)What are secondary colours of light?Name the colour that results from the combination of each ofthe following pairs of colour of light:(a)red and green;(B)blue and green;(Y) red and blue. Solve |2x 6| = 4x+4 Find the value of y for which the value of 1.7y+37 is 14 less than the value of 9.3y25 HELP QUICK Write and simplify an absolute valueexpression to find the distance between -3and 8.-=[ans] add 16k to the quotient of 4m divided by 11 Round off the following number to four significant figures.19.9743 What is "socialcomparison"?A. When you compare your social life to others' sociallifeB. When you compare your life to others' social mediaposts and feel like your life is worseC. When you compare your online posts to others'online posts and feel like yours are worseD. When you compare your life to others' online postsand feel like your life is better What should a food served worker use to pick up ready to eat food with A: Tong and deli tissues B: Clean bare hands C: Clean hand and arm D: let the customer pick the item How do auxins help plants to get sunlight? A)Auxins help make plants grow longer in the shaded part causing the plant to bed towards the light. B)When plants need more sunlight, it produces more auxins to attract light. C)Auxins cause plants to grow bigger in order to capture more sunlight. D)Auxins control how much light a plant can absorb. What is the variable in the expression: 3x + 4 Question Number 3 A high school student earns $65 for mowing one customer's lawn. If he mows 13 lawns in one week, how much money will he earn for that week? PROMPT: Determine Kings overall purpose of ""Letter from Birmingham Jail"" and analyze how he uses rhetoric and specific word choices to achieve or advance that purpose. Read the paragraph.What kind of a house do you live in? Houses come in all different sizes and shapes. Some are of wood while others are of stone or brick.Brick or adobe houses stay cool in the summer, yet are warm in the winter. The lightweight houses of Japan are designed to survive earthquakes.Based on the text, what kind of house would be best in a hot desert climate?O 1. a lightweight house2a stone house3. an adobe houseO4.a wood house Which of the following would cause a fan cart to accelerate the least? - doubling the speed of the fan- pointing the fan exhaust downward - tripling the speed of the fan- pointing the fan exhaust upward Solve equation 9(3x+7)-3.5 = -8 In hot sunlight, dry sand heats up more than ocean water. What principles of heat and thermal energy does this difference demonstrate? What entry would make to adjust the manufacturing overhead account for overallocated or underallocated overhead? Write a polynomial that represents the area of the shaded region