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

What is the highest mountain on each continent?
What's the word for wandering about; tending to move around, travel
What's the other word stubborn; inflexible
What is the answer to 12-2x6+2/2
explain why the motion of a body which is moving with constant speed in a circular path is said to be accelerated ?
What is the answer to 12-2x6+2/2
Which chemical equation best describes the reaction of potassium metal with fluorine gas to form solid potassium fluoride? A. K(s) + F2(g) → KF2(s) B. K(s) + F(
Choose the more precise measurement in the pair.  A .) 6.7 mi or  B.) 6 mi
What would cause a decrease in the quality of circulating red blood cells
How did Niccolo Machiavelli’s book The Prince set him apart from other writers of the Renaissance?