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

how to read AP world history
Michael is measuring fabric for the costumes of a school play. He needs 11.5 meters of fabric. He has 28.5 centimeters of fabric. How many more centimeters of f
Tell whether the statement is true or false. Explain. Help please
The aspect of English changing most rapidly today is _____. grammar vocabulary meaning pronunciation
7. The rise or fall in the price of an item is an example of which of the following?
Sal is making bracelets for a fundraiser he uses 6 inches of yarn per bracelet how many bracelets can sal make with 5 feet of yarm
What is the following product? 3√16x^7 3√12x^9 Please help, Thank you!
What does cherry say is the real separation between the socs and the greasers?
The political structure of the Roman Empire included all of the following from the Roman Republic except A. a Senate B. checks and balances C. plebeians and p
A brick has dimensions of 15 cm x 6.0 cm x 12 cm. What is the volume of the brick in cubi meters?