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

Which of the following statements contains a superlative
¿ Les dan Uds. muchos regalos a sus amigos? Si, les _______muchos regalos
Why do state and local governments provide public services?
7^16/7^12=7^-18/? what is the missing denominator
What type of microscope is used for looking at metal surfaces?
Molecules are packed closer together in the ground than they are in the air. will sound travel faster or slower in the ground than in air? explain
Write out the Spanish alphabet. Which letters sound the same as the English alphabet? Which sound different? Read More >>
What important change did the Roman emperor Constantine make in A.D. 313?
Marla is looking for a new car. She has test-driven two cars but can only purchase one. The probability that she will purchase car A is 0.52, and the probabilit
What are characteristics of a slide master?