subject
Engineering, 02.11.2019 05:31 quan1579

Analyze the following code:

double [] array = {1,2,3};
arraylistlist = new arraylist< > (arrays aslist(array));
system. out. printin(list):

(a) the code is correct and displays [1, 2, 3].
(b) the code is correct and displays [1.0, 2.0, 3.0].
(c) the code has a compile error because an integer such as 1 is automatically converted into an integer object, but the array element type is double.
(d) the code has a compile error because aslist(array) requires that the array elements are objects.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 19:10
Air inially occupying a volume of 1 m2 at 100 kpa, 27 c undergoes three internally reversible processes in series. process 1-2 compression to 500 kpa during which pv constant process 2-3 adiabatic expanslon to 100 kpa process 3-1: constant-pressure expansion to 100 kpa (a) calculate the change of entropy for each of the three processes. (b) calculate the heat and work involved in each process. (c) is this cycle a power cycle or refrigeration cycle?
Answers: 3
question
Engineering, 04.07.2019 19:20
Air enters a horizontal, constant-diameter heating duct operating at steady state at 290 k, 1 bar, with a volumetric flow rate of 0.25 m°/s, and exits at 325 k, 0.95 bar. the flow area is 0.04 m2. assuming the ideal gas model with k = 1.4 for the air, determine (a) the velocity at the inlet and exit, each in m/s, and (c) the rate of heat transfer, in kw flow rate, in kg/s, (b) the mass kg 0.3
Answers: 2
question
Engineering, 04.07.2019 19:20
Aseries piping system conveys methyl alcohol. the system consists of 70 m of 1- nominal pipe follow by 50 m of 2-nominal pipe, both schedule 40 commercial steel. the 1-nominal pipe contains 3 90° elbows (regular) anda fully open gate valve, all threaded. the pressure drop through the system is 150 kpa. determine the volume flow rate through the system that is horizontally laid.
Answers: 1
question
Engineering, 04.07.2019 19:20
To save energy, the air supply to a 2000 ft office has been shut off overnight and the room temperature has dropped to 40°f. in the morning, the thermostat is reset to 70°f and warm air at 120 f begins to flov in at 200ft'/min. the air is well mixed within the room, and an equal mass flow of air at room temperature (changing with time) is withdrawn through a return duct. the air pressure is nearly 1 atm everywhere. ignoring heat transfer with the surroundings and kinetic and potential energy effects, estimate how long it takes for the room temperature to reach 70°f. plot the room temperature as a function of time.
Answers: 1
You know the right answer?
Analyze the following code:

double [] array = {1,2,3};
arraylistlist = new array...
Questions
question
Mathematics, 24.08.2019 22:30
question
Mathematics, 24.08.2019 22:30
question
History, 24.08.2019 22:30
question
Mathematics, 24.08.2019 22:30
question
Mathematics, 24.08.2019 22:30
Questions on the website: 13722363