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

Evaluate. or Calculate the value
Which sentence uses a verb that agrees with its pronoun subject? A. Neither of those computers connect to the Internet. B. Nearly everybody in the choir sing a
What is honour rationing?
How do the Robinsons get the animals off the ship? A. They tie empty barrels to the animals so they can float to shore. B. They carry each animal, one by one, t
the cost for n students to attend a workshop is 7n plus $12. What is the cost for 6 students to attend
Which choice identifies the kind of sentence and the correct end mark? Would you like a glass of water A. declarative, period B. exclamatory, exclamation point
Which group is on the extreme left of the political spectrum, and favors strong government intervention in the economy? A. conservatives B. radicals C. reaction
a paper plate has a diameter of 9 inches.what is the circumference of the plate
I need help with my homework :/
What is the reason for the tragic end of the hero Beowulf?