kkartes8661 kkartes8661
  • 22-04-2020
  • Computers and Technology
contestada

How would you add the double 75.6 to the end of an ArrayList of Doubles named myDoubles?


(This is Java Programming btw)

Respuesta :

frknkrtrn
frknkrtrn frknkrtrn
  • 25-04-2020

Answer:

myDoubles.add(75.6);

Explanation:

ArrayList<Double> myDoubles = new ArrayList<Double>();

myDoubles.add(10.8);

myDoubles.add(92.46);

myDoubles.add(75.6);

The above code creates a double ArrayList called myDoubles. We add 10.8 and 92.46 initially. After these numbers, 75.6 is added to the myDoubles using add method (You need to type the list name, ".", and the method name to add the number)

Answer Link

Otras preguntas

On Marshal’s 5th-grade math test, he was asked to evaluate: 25,328.941 ÷ 104. The answer he wrote was 25.328941. Unfortunately for Marshal, his teacher marked t
impact of drug addiction on emotional and physical spheres​
? is doctor A him B His C he D he's
PLEASE ASAP PLEASE HELP 10 PTS
difference between sympathy and empathy
there is too much traffic in the city. what do you think the authorities should do about it? write at least 80 words
What are the coordinates of the point P on the directed line segment from A to B such that P is 14 the length of the line segment A to B
is -5 bigger than -4.89?
Matt purchased shares of Microsoft in 2016 for $52.50 per share. He plans to sell them as soon as the price rises 20%. At what price will he sell his shares?
PLEASE HELP WILL MARK BRAINLIEST!!!