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 do you mean by corrosion? How can you prevent it?
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies both inequalities
In Romeo and Juliet act 2, which character serves as a messenger
Any number that is divisible by 3 is also divisible by 9.Find a counterexample to show that the conjecture is false.18274548
One way to show that a statement is NOT a good definition is to find a _____ converse.conditional.counterexample.biconditional.
A transformer has a primary coil with 600 turns and a secondary coil with 300 turns. If the output voltage is 320 volts, what is the input voltage?A. 8 volts
A transformer has a primary coil with 600 turns and a secondary coil with 300 turns. If the output voltage is 320 volts, what is the input voltage?A. 8 volts
One-half of a number is -12. Find the solution ???
Question: 35/8 ( write as mixed number ) Please help me very very quickly!!!!!!!!!!!!!!!!!!!
Why do Andhra Pradesh donot recive any snow fall during during winter months. PLEASE HELP.....EXAM TOMORROW