1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kvasek [131]
3 years ago
9

Consider the following statement, which is intended to create an ArrayList named a to store only elements of type Thing. Assume

that the Thing class has been properly defined and includes a no-parameter constructor.
ArrayList a = /* missing code */;
Which of the following can be used to replace /* missing code */ so that the statement works as intended?
A: new Thing()
B: new ArrayList()
C: new ArrayList(Thing)
D: new ArrayList()
E: new ArrayList<>(Thing)
Engineering
1 answer:
MrMuchimi3 years ago
3 0

Answer:

new ArrayList<Thing>()

Explanation:

The syntax to declare an arrayList is:

ArrayList [var-name] = new ArrayList<data-type>()

From the question;

We understand that the variable name is: a

And the data-type is: Thing

So, the ArrayList of type Thing can be defined using:

ArrayList a = new ArrayList<Thing>();

Hence:

None of the options answers the question.

You might be interested in
How much will it cost to train the entire company to use a recycling program if the training includes paper handouts? (Remember,
bezimeni [28]

Answer:

With the current budget of $1,000, it is possible to train the company and buy 3 recycling carts given that recycling pickup within the area is free

Explanation:

The office waste management budget that is not being spent = $1,000

The given expense parameters are;

The training cost per hour per employee = $12.00

The number of people in the entire company = 45

The cost of preparing the training material per hour = $20.00

The number of people to create the training material = 3 people

The time it will take each person in creating the training material = 3 hours

The cost of recycling cart = $80.00 per cart

The cost of paper handouts per employee = $0.05

The cost of materials include;

The total cost for the training = $12.00 × 45 = $540

The cost for the handout = $0.05 × 45 = $2.25

The cost of preparing the materials = $20.00 × 3 × 3 = $180.00

The total costs of the training = $540 + $4 + $180.00 = $724

The amount available to buy cart = $1,000 - $724 = $276

Therefore;

The amount available to buy cart = $276

The number of carts that can be bought = 276/80 = 3.45 carts

Therefore, we round down to get;

The number of carts that can be bought = 3 carts

8 0
3 years ago
A pump is used to deliver water from a lake to an elevated storage tank. The pipe network consists of 1,800 ft (equivalent lengt
Nataly_w [17]

Answer:

h_f = 15 ft, so option A is correct

Explanation:

The formula for head loss is given by;

h_f = [10.44•L•Q^(1.85)]/(C^(1.85))•D^(4.8655))

Where;

h_f is head loss due to friction in ft

L is length of pipe in ft

Q is flow rate of water in gpm

C is hazen Williams constant

D is diameter of pipe in inches

We are given;

L = 1,800 ft

Q = 600 gpm

C = 120

D = 8 inches

So, plugging in these values into the equation, we have;

h_f = [10.44*1800*600^(1.85)]/(120^(1.85))*8^(4.8655))

h_f = 14.896 ft.

So, h_f is approximately 15 ft

7 0
3 years ago
When will stemuless checks come I was told not to file my taxes because I get a pension check every month direct deposit money i
Keith_Richards [23]

The IRS and the U.S Department of the treasury declared that social security recipients are not required to file a simple tax return to receive stimulus payments under the CARES Act.

Explanation:

Due to the impact of corona virus problem, the CARES Act calls for stimulus payment to be sent to Americans based on their gross income.

The Social security recipients are not required to file a tax return and do not take action and they will receive the payments directly to their bank accounts.

The Automatic payments will begin by next week. The eligible taxpayers who filed tax returns for 2019  or 2018 and chose direct deposit for their refund will automatically receive a stimulus payment of  $1,200 for individuals or $2,400 for married couples and $500 for each qualifying child.

7 0
4 years ago
What does carbon addition to iron do, what does it produce, how does it change properties, what are its reflections? Describe in
NISA [10]

Answer:

Demire karbon ilavesi ne yapar, ne değiştirir, özellikleri nasıl değiştirir, yansımaları nelerdir? Grafiklerde kullanarak detaylı olarak açıklayın. HMK brainly.com/app/profile/7139574 takip et!!!!  

8 0
4 years ago
A good rule of thumb is to design the horizontal stabilizer so that its area is about 1/6 to 1/8 of the area of the wing. If the
erik [133]

Answer:

Stabilizer with area = 14 cm2

Explanation:

i dont know why but its right

4 0
3 years ago
Other questions:
  • A satellite component is in the shape of a cube with 10cm edges, has an evenly distributed mass of 2 kg and one bolt hole at eac
    11·1 answer
  • userInput = scnr.nextLine(); firstLetter = scnr.nextLine().charAt(0); if ( = firstLetter ) { System.out.println("Found match: "
    6·1 answer
  • The process of hazard recognition, evaluation, and control is the foundation of an effective___program.
    11·1 answer
  • If a wire has 23.6 A of current and a resistance of 33.3Ω how much voltage is present?
    8·1 answer
  • Water is the working fluid in a Rankine cycle with reheat. The turbine and the pump have isentropic efficencies of 80%. Superhea
    14·1 answer
  • A rectangular channel 3-m-wide carries 12 m^3/s at a depth of 90cm. Is the flow subcritical or supercritical? For the same flowr
    15·1 answer
  • While examining the color of an engine's coolant: Technician A says that because it is orange, the cooling system should be flus
    8·1 answer
  • Basic leads have a probe on one end for making the connection with the electrical circuit being tested and a
    8·1 answer
  • When does the vc-turbo engine use lower compression ratios?.
    13·1 answer
  • The alternating current frequency used in the United States is
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!