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

What type of bond holds together sugar and phosphates
Dr. Adams tells his patient Aileen, who is anxious about taking tests, that if she takes the test without feeling anxiety, she can reward herself by buying a pa
Rainforests may be located in what latitude range? A) 10° S to 25° N B) 30° - 50° N and S C) 35° - 55° N D) 60° - 75° N
Select all that apply. Twenty Thousand Leagues Under the Sea is considered science fiction because it _____. A. is a work of fantasy B. is a work of pure sc
each of the circles below has an area of 196 pi square units find the perimeter of the rectangle
$8000 at 3% annually for 4 years
if it costs $7.50 to park, how much will the stadium make from parking 10,600 vehicles
As an individual ages, small sensory losses such as a decreased ability to hear nuances of emotion in speech _____. impair cognition are noticed immediate
find the volume of each prism round to the nearest tenth if necessary
Find the length of the side of a square with an area of 144inches squared. a.48 in b.12 in c.206 in d.288 in