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

the quotient of a number p and 3 is at most 16.
order least to greatest 0.5, 3/16, 0.75, 5/48
How many different ways can you make 18 cents using dimes, nickels, or pennies? A. 8 B. 6 C. 5 D. 4
what times what equals 36
Three million and nine thounsandths
Which causes strep throat, anthrax, and tetanus?
How did landforms and climates affect culture
How are the decimals 0.009 and 0.09 related?
Maritza remembers her pin because it is the product of consecutive prime numbers that is between 1000 and 1500. What is her pin
connecting the past to the present helps you to know how people have ?