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

Rina can blow up 6 balloons in 1 mintue. At this rate how many balloons can she blow up in 8 mintues?
please help me anything will help
Which of the following lists of ordered pairs is a function? A.(2, 4), (3, 9), (4, 16), (5, 25) B.(0, 2), (4, 2), (0, –4), (4, –2) C.(1, 1), (2, 3), (1, 5), (4,
how did Germanic peoples organize Europe politically after the end of the Western Roman Empire?
Bdndjhddhdudhdhhdhdhhdgdbd d dvdbdd dxgx
What is 23/138 as a unit fraction
help me please I don't understand
Simplify the expression. Assume all variables are nonzero. 10(y^5/x^2)^2
Nurse aide Jane, was assigned to take vital signs on 5 patients. She started at 7:25am. It took her 10 minutes for the first patient, 12 minutes for patient #2,
Give two different measurements that are equivalent to 2 1/2 quarts