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

how can i used properties to find the sum or product for 93+(68+7)
The price of a swimming pool has been discounted 16.5%. The sale price is $849. Find the original list price of the pool
What did the Federalists want the Constitution to provide?
0.00000000001 convert number to scientific notation
0.00000000001 convert number to scientific notation
round each number to the specified place207,689  ten thousands507,378  millions3,422,087  thousands19,499,890 millions
Which gases enters ocean water from organisms that photosynthesize? A. carbon B. nitrogen C. hydrogen D. oxygen
explain what motivates Beowulf to travel across the sea to help Hrothgar?
2x^2-x+10 solve using quadratic formula
Under the English Westminster model, the highest court of appeals is