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

One cell that undergoes meiosis will yield how many independent cells?
why were European countries competing to control global trade?
Which of these is NOT an Indo-European Language? Hindi Korean Yiddish
EASY POINTS! ♥♥ Which of the following statements best describes the spread of Islam during the Arab conquests? A. Islam spread only within the lands conquere
Which of the following would weigh heavily on a person's perception of an event? past experience no experience
The slope of a line is 0. What do you know about the line?
A party host is making identical party bags for guests using 44 bottles of bubbles, 89 stickers, and 55 pencils. What is the greatest number of identical party
What atom has 19 protons and 20 neutrons
A general store in a remote community is an example of what? A. a technological monopoly B. a geographic monopoly C. a government monopoly D. a natural mono
Simplify 5 - 2 · 3 + 4.