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

What does Harriet Tubman do when a fugitive wants to go back to the plantation
What is the SAT writing and language test asked students to do
A hostile interaction between people over the Internet is called a _________. A. Webout B. Webcast C. Flame D. Flash
What agency has the most responsibility for preparing the federal budget?
What is 4% of 300 Plz help me I’m not good at %
What is the chemical name Na2SO3
in simplified exponential notation, the expression x^3•x^-4•x=
If y= 6x + 5 is the equation of a straight line graph. What is its gradient?
a farmer can plant 4/5 of an acre in 2/3 hour how many acres can he plant in 1 hour
BRAINLYEST! HELP FAST PLEASE Owner of the Pickrick Cafeteria in Atlanta Opposed the Civil Rights Act of 1964 the last openly-segregationist Governor of Georgia