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

Reggie is deciding when to go bowling with his friends. Friday night is glow-bowling night, with 5 glow-bowling games for $22.50. But the early-bird special on
Pls help I’ need a good grade
Which sentence or phrase from the passage best supports your answer to question 5 in Rikki-Tikki-Tavi
Please use a physical map of Europe online to help you complete the matching
Find the area of the figure below. 10 ft 5 ft 5 ft 17.5 ft A) 175 ft? B 150 ft © 200 m2 D 25ft?​
PLS HELP ASAP GIVE BRAINLIEST TO PERSON WHO ANSWER CORRECTLY
Is it a polynomial?
Simplify. [tex]\sqrt32 + \sqrt16+ \sqrt8[/tex]
If f(x) = 3x + 1, what is one possible value of x for which 6
Find the slope of y-intercept of the line represented by the table. Please look at the photo