AP Computer Science A Question of the Day

Test your knowledge with a hand-picked multiple-choice question.

What is wrong with this loop?

int i = 0;

int count = 20;

int<u></u> arr = <u>1, 3, 4, 6, 8, 768, 78, 9</u>

while (i < count) {

if (i > 0) {

arr<u>i</u> = count;

}

if (i < 15) {

System.out.println("HEY");

}

}

Select an answer and click Check.