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;;
}
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;;
}
homework is meant for you to learn, not have others give you an answer. try it.