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

I'm not really good at math, so can someone answer this for me?
Click and drag each label to the accurately identify the components of the visceral baroreflex
Let f(x) be the number of households, in thousands, that own a tablet x years after 2005. What does f(8) = 216.8 mean?
least common denominator
which accurately describes the impact of the Roman Catholic Church on Europe during the Middle Ages
Which of these planets has characteristics most similar to Neptune? Mercury, Venus, and Jupiter Venus, Earth, and Mars Earth, Mars, and Saturn Saturn, Jupit
Which is the first thing you should do when making an individual decisions
my property is 50×10, how many squares would I need if the square is 16x16
which best describes what is happening in section B?
Why do we need math formulas?