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

Read the excerpt from act 5, scene 1, of Julius Caesar. CASSIUS. Then if we lose this battle, You are contented to be led in triumph Through the streets of Rome
Which expression is equivalent to
Bridge to Terabithia what does the author mean when she writes about the elements conspiring?
what is the value of 43rds the 3 is meant to be small
In the triangle below what is the cosine of 30 ?
Top cat car wash buys liquid soap in 5 gallon buckets. How many liters are in one 5 gallon bucket?
There are less than 12 hours of daylight each day in winter write as an inequality
PLEASE HELP MHE UwU Read the sentence. Harte’s poem “Dickens in Camp” was considered by many admirers to be his verse masterpiece. Which is the correct subj
a student spends 40 minutes a day studying how many days per year does the student study?
The number of students at maritas school decreased to 98 percent of last years number. Currently, there are 1,170 students. How many students were there last ye