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 do you work out the problem 84 divided by4
The gases in the air attracted to earth by gravity form layers called the ____
Why did president Washington want the United States to remain neutral
Graph the line using intercepts: 4x-3y=12
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5
why can parents who are heterozygous for type a and type b blood have children with any of the four human blood types?
when we look at a leaf, we see the colors of light that are reflected off its surface. how does the relatively low flow of oxygen in green light?
sam cut a pie into equal parts.There are 3 slices left.The angle measures for 3 slices is 72.how many slices did he cut?
What is a series of events that cells go through as they grow and divide
Luke made a model that has 1 circular base and 1 curved surface.what solid figure did he make