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 sorts of signals does the brain use to communicate sensations, thoughts and actions?
how might a scientist a determine  whether trait sex-linked by observing the offspring of several genetic crosses
What is a series of events that cells go through as they grow and divide
How did Alexander the Great rise to power and how did he spread Greek culture to other lands?
Simplify (7-5i)(-3+9i)-(5+6i)^2
Why were the 1920's considered the best and worst of times?
How did the Declaration of Independence change the nature of the American Revolution?
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5
The gases in the air attracted to earth by gravity form layers called the ____
What culture believes health is harmony between man and nature?