Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (alprincenofl):

Fill in the if condition that will only access the array list when the index variable i is within the legal bounds.

OpenStudy (alprincenofl):

Screenshot and Choices: http://prntscr.com/5ftzwf

OpenStudy (harsha19111999):

There is no size() methods in JAVA. So 2nd and 3rd options would be wrong.

OpenStudy (harsha19111999):

In the first option, you have && which only outputs the array element in bounds. So the 1st option is correct

OpenStudy (alprincenofl):

@Harsha19111999 Sadly it's not correct http://prntscr.com/5fu1zb

OpenStudy (harsha19111999):

Oops...Its 4th one. Do you have another chance to try?

OpenStudy (alprincenofl):

Sadly no, this is an assignment so it's only one chance and sent directly to the professor :/

OpenStudy (harsha19111999):

Oh

OpenStudy (harsha19111999):

Sorry

OpenStudy (alprincenofl):

It's ok thanks for your try anyway

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!