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

Type the integer that makes the following addition sentence true for Brainliest!!
Use the drawing tool(s) to form the correct answer on the provided graph. The graph of function fis shown on the coordinate plane. Graph the line representing f
How is gene theory related to the theory of evolution?
does anyone know how to pass paying for answer
Help me with this one pls
A certain number was divided by 3 and 3 was added to the result. The final answer was 8 what was the number​
List the domain and range of the relation. {(4. – 2), (7,7), (0, - 2), (7.1) (4,2)}
helppp asap pleaseee!​
Rachel and Marc drive to work. Rachel drives 90 miles in 1.25 hours. Marc drives 244 km in 2 hour 30 min. Work out the difference between their average speed
what are the method of producing skilled human power?​