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

Do you think that people could get more energy from agricultural land if they ate only plants, instead of plants and animals? Discuss.
Help- What are 4 ways the federal government's power was strengthened after the War of 1812?
what is file system manipulation​
Can someone help me to do this, please !!!! I didn't understand what should I have to do
essay about population education​
How is Ha's family experiences most like the experiences of other families coming to the United States today
PLEASE HELPPPP!!!!!!
PLZ HELP!!! I Will give brainliest. What is the value of x in sin(3x)=cos(6x) if x is in the interval of 0≤x≤π/2
A particle R moves with a velocity of 6 m/s due East and another particle S moves at 8 m/s due South. What is the magnitude of the velocity of R w.r.t S?
Given the expression 5+3(7-4), which mathematical terms describe (7-4)? Select all that apply.