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

Help me with ixl please
The monthly cost of water use is a linear function of the amount of water used (HCF). The cost for using 16 HCF of water is $39.04, and the cost for using 44 HC
( i only need number one and number 7 ) someone please i’m desperate i have so much work i need done by monday even if you only do one of them it is greatly app
What is the sum of the matrices shown below? 3 6 0 9 5 -2 + 6 0 -8 4 =
Solve each equation. |x+5|=-3
A 16.0 kg canoe moving to the left at 10 m/s makes a head-on collision with a 19.0 kg raft moving to the right at 7.0 m/s. After the collision, the canoe moves
373646351636646475753626266374747574884x848484893990299149440505944330309877=?
Angle ABC is taken by a dilation with centerpoint, P and scale factor of four to angle A’B’C’ the measure of angle, BCA is 75° what is the measure of angle B’C’
The cells ____ and shrivel up
Solve each equation. |x+5|=-3