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 was the official religion of the tang dynasty
1^2 + 4^2 + 7^2 + ... + (3n - 2)^2 = n(6n^2-3n-1)/2
why don't the suitors want the beggar to try the bow?
it took 50 joules to push a chair 5 meters across the floor.with what force was the chair pushed
during the early 1800s, what did new england's textile industry and cotton farming in the south have in common?
the equation a = represents the angle measures, a, in a regular n-sided polygon. when the equation is solved for n, n is equal to a fraction with a denominator
why is there a growing concern over the physical fitness of children and adolescents? a. children and adolescents are overly concerned with exercise and fitness
what causes the need to use imaginary numbers
The synthesis (s) phase is characterized by
Early human populations were controlled by all of these factors except? is it predation, disease, pollution, food availability.