What is the output of the following code?

```
double[] myList = {1, 5, 5, 5, 5, 1};
double max = myList[0];
int indexOfMax = 0;
for (int i = 1; i < myList.length; i++) {
if (myList[i] > max) {
max = myList[i];
indexOfMax = i;
}
}
System.out.println(indexOfMax);
```
a. 0
b. 1
c. 2
d. 3
e. 4

b. 1

Computer Science & Information Technology

You might also like to view...

_____________ value creates tangible results

Fill in the blank(s) with correct word

Computer Science & Information Technology

SONET was designed to support multiple streams of voice channels.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology