![maccaudill02](/avatars/48968.jpg)
maccaudill02
02.11.2019 •
Engineering
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.
Solved
Show answers
More tips
- S Sport How to Get Rid of Belly Fat: Easy Way to Achieve the Perfect Figure...
- F Family and Home When and how to start introducing solid foods to your baby?...
- B Business and Finance Moneybookers – What it is and How it Works...
- C Computers and Internet How to Format Your C Drive: Detailed Guide and Tips...
- F Food and Cooking What can and cannot be eaten during Lent?...
- H Health and Medicine What to Do When Your Jaw Locks Up?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- D Dating, Love, Relationships Is it a Compliment or Flattery: What s the Difference?...
- S Science and Technology The Metric System in Our Daily Life: Understanding Its Importance...
- C Computers and Internet What to Do If Your ICQ Gets Hacked?...
Answers on questions: Engineering
- H History List every negative action the USA tok against Cuba from 1959 to 1962...
- H History What are the major similarities and differences between the National Diet and the US Congress?...
- P Physics Problems of nuclear energy and solutions for them plz...
- B Business The relationship between employer and employee can be thought of in terms of a(n) a description of what an employee expects to contribute in an employment relationship and what...
Ответ:
Explanation:
Given data:
length of Steel bolt![L_1 = 335 mm](/tpl/images/0288/3115/b6c35.png)
Length of aluminium cylinder![L_2 = 275 mm](/tpl/images/0288/3115/ea7a5.png)
Pitch of bolt p = 1mm
Modulus of elasticity of steel E = 215 GPa
Modulus of elasticity of aluminium = 74 GP
Area of bolt![= \frac{\pi}{4} 14^2 = 153.93 mm^2](/tpl/images/0288/3115/e4e11.png)
Area of cylinder = 2300 mm^2
n =1
By equilibrium
By the compatibility
Displacement in steel is![\delta_s = \frac{P_sL_s}{E_sA_s}](/tpl/images/0288/3115/6f4fb.png)
Displacement in Aluminium is![\delta_A = \frac{P_AL_A}{E_AA_A}](/tpl/images/0288/3115/161b8.png)
from compatibility equation we have
substitute![P_A =2P_S](/tpl/images/0288/3115/22001.png)
Stress in Aluminium![\sigma = \frac{P_A}{A_A}](/tpl/images/0288/3115/a55cf.png)