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 was 1 of the dangers of living in a tenement?
What times what equals 62
A vat contains 60 gallons of a 15% saline solution. How many gallons of water must be evaporated so that the resulting solution will be 20% saline?
What is the answer to 25 times 2/5
A number increased by 4 is the same as 19 minus 2 times the number.
How do I solve for Y :( ? 2x-3y=8
What is the greatest common factor of 54,30,78?  pleaseeeeee help lol
How do you know that 35×5=5×35 without finding products
amani did 10 jumping jacks. The she did 7 more
Two functions are defined as: f(x)= (1/(-5x+19))+5 g(x)= (1/(10x-3)) Find  fg(x) Simplify your answer into the form (ax+b)/(cx+d) where a,b,c,d, are numbers to