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

Use autocracy in a sentence
Would you prefer a loan with simple interest or compound interest? Why? NEED ASAP!!!!! WILL MARK BRAINLIEST
write me an essay on the struggles beyonce went through as a woman
there are 30 children in my class. i have 12 sets of mathematcs equipment. i want to arrange the tables in groups so that the equipment is shared equally among
Please Help Me with this statistics things
Why does renal failure cause pulmonary edema?
The radius of circle M is 5 cm, the radius of circle N is 3 cm, and the radius of circle L is 3 cm. What is the perimeter of triangle LMN? SHOW YOUR WORK. Hint:
write the inequality in interval notation -10 < x < 3
Definition of quad cane...A. A cane with five rubber tipped feet designed to bear a little weightB. A cane with four rubber tipped feet designed to bear all you
Deductive or Inductive agrument? 1. In a recent study, 100% of those surveyed survived playing Russian Roulette. We can conclude that it’s very likely that Russ