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
A cartridge electrical heater is shaped as a cylinder of length L=200mm and outer diameter D=20 mm. Under normal operating condi
lara31 [8.8K]

Answer:

T(water)=50.32℃

T(air)=3052.6℃

Explanation:

Hello!

To solve this problem we must use the equation that defines the transfer of heat by convection, which consists of the transport of heat through fluids in this case water and air.

The equation is as follows!

Q=ha(Ts-T\alpha )

Q = heat

h = heat transfer coefficient

Ts = surface temperature

T = fluid temperature

a = heat transfer area

The surface area of ​​a cylinder is calculated as follows

a=\pi D(\frac{D}{2} +L)

Where

D=diameter=20mm=0.02m

L=leght=200mm)0.2m

solving

a=\pi (0.02)(\frac{0.02}{2} +0.2)=0.01319m^2

For water

Q=2Kw=2000W

h=5000W/m2K

a=0.01319m^2

Tα=20C

Q=ha(Ts-T\alpha )

solving for ts

Ts=T\alpha +\frac{Q}{ha}

Ts=20+\frac{2000}{(0.01319)(5000)} =50.32C

for air

Q=2Kw=2000W

h=50W/m2K

a=0.01319m^2

Tα=20C

Ts=20+\frac{2000}{(0.01319)(50)}=3052.6C

3 0
3 years ago
A 225 MPa conducted in which the mean stress was 50 MPa and the stress amplitude was (a) Compute the maximum and (b) Compute the
tamaranim1 [39]

Answer:

Explanation:

Given data in question

mean stress  = 50 MPa

amplitude stress  = 225 MPa

to find out

maximum stress, stress ratio, magnitude of the stress range.

solution

we will find first  maximum stress  and minimum stress

and stress will be sum of (maximum +minimum stress) / 2

so for stress 50 MPa and 225 MPa

\sigma _{m} =  \sigma _{maximum} + \sigma _{minimum}  / 2

50 =  \sigma _{maximum} + \sigma _{minimum}  / 2    ...........1

and

225 =  \sigma _{maximum} + \sigma _{minimum}  / 2      ...........2

from eqution 1 and 2 we get maximum and minimum stress

\sigma _{maximum} = 275 MPa        ............3

and \sigma _{minimum} = -175 MPa     ............4

In 2nd part we stress ratio is will compute by ratio of equation 3 and 4

we get ratio =  \sigma _{minimum} / \sigma _{maximum}

ratio = -175 / 227

ratio = -0.64

now in 3rd part magnitude will calculate by subtracting maximum stress - minimum stress i.e.

magnitude = \sigma _{maximum} - \sigma _{minimum}  

magnitude = 275 - (-175) = 450 MPa

3 0
3 years ago
Suppose the loop is moving toward the solenoid (to the right). Will current flow through the loop down the front, up the front,
Tems11 [23]

Answer:

See explanation

Explanation:

The magnetic force is

F = qvB sin θ

We see that sin θ = 1, since the angle between the velocity and the direction of the field is 90º. Entering the other given quantities yields

F

=

(

20

×

10

−

9

C

)

(

10

m/s

)

(

5

×

10

−

5

T

)

=

1

×

10

−

11

(

C

⋅

m/s

)

(

N

C

⋅

m/s

)

=

1

×

10

−

11

N

6 0
3 years ago
Read 2 more answers
An orchestra is having a recording done of 2 performances in the same concert hall. The first show is sold out. They struggled t
konstantin123 [22]

Answer:

yes, the recordings sound is same

Explanation:

given data

recording done = 2 performances

1st  show = sold out

2nd show =  lightly attended

to find out

recordings sound the same and why

solution

as per given in

  • 1st show is sold out it mean in this case concert hall is full so that recording sound should be high here
  • 2nd case only few people are attended and struggle for ticket  and orchestra

it mean it sound performance so in both case recording sound will be same

because we do not other all are sitting at front row or they sit as they want

4 0
3 years ago
Today I meant to look for my missing watch, but I could never find the time.
xxMikexx [17]

Answer:

haha i get it

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • What is the energy change when the temperature of 15.0 grams of solid silver is decreased from 37.3 °C to 20.5 °C ?
    13·1 answer
  • Please read
    6·1 answer
  • What are factor of safety for brittle and ductile material
    5·1 answer
  • A light pressure vessel is made of 2024-T3 aluminum alloy tubing with suitable end closures. This cylinder has a 90mm OD, a 1.65
    8·1 answer
  • Part A - Transmitted power A solid circular rod is used to transmit power from a motor to a machine. The diameter of the rod is
    8·1 answer
  • A 3-phase induction motor is being driven at a frequency of 80 Hz, and the motor speed is 1000 rpm. How many poles does the moto
    8·1 answer
  • What is a Planck Distribution and how is it used to solve for black body radiation problems?
    12·1 answer
  • PLEASE HELP ASAP!!! Thanks
    11·1 answer
  • Diffrerentiate y=cos^{4} (3x+1)
    5·1 answer
  • In the figure show, what's the distance from point H to point C?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!