Respuesta :

Answer:

Explanation:

When dealing with the Java programming language you need to first declare the variable type and then initialize that variable. Since precise temperature measurements would be in a double format (example: 98.3) then the proper way to do this would be with the following code.

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

               myTemps.add(98.3);

               myTemps.add(33.2);

               myTemps.add(48.5);

This code declared the ArrayList as type Double and added three elements to the array

The proper  initialization and declaration should be shown below.

Proper initialization and declaration:

At the time of dealing with the programming language i.e. JAVA here we required to first see the type of variable after this we have to initialize it. The measurment of the temperature should be in the double format example 98.3

So, the following code should be used.

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

              myTemps.add(98.3);

              myTemps.add(33.2);

              myTemps.add(48.5);

This code should be declared the ArrayList since type Double and added three elements to the array.

Learn more about array here: https://brainly.com/question/24348246