deedoe8150 deedoe8150
  • 04-09-2019
  • Computers and Technology
contestada

What is the output of this code sequence? (Be exact in your answer with spacing) double [] a = {12.5, 48.3, 65.0}; System.out.println(a[1]);

Respuesta :

LRev
LRev LRev
  • 08-09-2019

Answer:

48.3

Explanation:

double [] a = {12.5, 48.3, 65.0}; This line creates the array a, which has three values, those three values can be accesed with the index operator, [].

System.out.println(a[1]); This line prints in the console the value in the array a in the second position, in Java the index inside arrays starts from zero, then puts a new line.

Answer Link

Otras preguntas

which of the following would not make a good insulator* rubber*plastic*wood*metal
What is the volume of a rectangular box that has base area of 75 square inches and a height of 20 inches
Why didn't the first stars to form have solar systems with Earth like planets and satellites?
A bag has index cards with the following numbers on them: 4, 11, 13, 25, 12, and 18. If an index card is drawn randomly , what is the probabilty that a composit
57% of 109 is what number? plz help
Why was capturing egypt's suez canal so important to the axis powers?
A basketball has been left out in the cold. The next day you find that it has become soft. What do you do to get it back to shape and why?a) Leave it alone to w
What happens at a conservative plate boundary? Someone please help me in this because I have test today. Aswell please don't copy it from the internet.
57% of 109 is what number? plz help
a rectangular field with a area of 8000m2 is enclosed by 400m of fencing. determine dimensions to nearest tenth of a metre