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 many $0.21 pencils can be purchased for $7.00? Show your work.
Give an example of oxidation reaction which can be a nuisance
What are the steps to solve this?
Which words in the sentence are the appositive? Which words does the appositive rename? The author Charles Dickens wrote some of the best-loved novels of all
9 to the x-5 power=27
what is the balanced chemical equation for caffeine?
what forces led Americans to declare war on Britain in 1812?
The sum of two numbers is 104 and one exceed the other by 10. What are the numbers?
Cory's average score after 8 tests is 91%. If he gets a 78% on his 9th test what will his new average be? How do i figure out this problem?
To calculate the area of the front surface of a box,you (a) add the length to the height (b) add twice the length to twice the height ( c) multiply the length b