tags:

views:

54

answers:

1

Suppose list is an array of six components of the type int.What i stored in list after the following Java code executes?

list [0] = 5;

for (i =1; i < 5; i++)
{
  list[i] = 2 * i + 5;

if (i % 2 == 0)
      list[i] = list[i] - 3;;
}
A: 

homework is meant for you to learn, not have others give you an answer. try it.

Bill Turner
On a related note, answers are meant to answer the question, and hopefully avoid blatant rudeness while doing so; this should be a comment
Michael Mrozek