Which is an inappropriate use of a for-each loop? when all values in an array need to be traversed when values need to be assigned to an array when an index variable is required to complete a task
Which do you think it is?
I have 2 and 3
Oh wait
LOL
I only II only III only II and III only I, II, and III
There are the options
Had me confused for a sec there
Lol judging by the "lol" im wrong
Either it's 1, or all 3. Leaning to all 3... hm
Ok ill go with what you think aha
In reference to for-each loops, which of the following statements is true? for-each loops can be rewritten as for loops an index variable is NOT explicitly coded an ArrayIndexOutOfBoundsException will always be thrown I and II only I and III only II and III only I, II, and III None of the statements are true
Can you just check that one i have 1 and 2 only put
That seems about right
Yus ok im gonna submit it lets see
WAIT
?
I just realized it said what is an INAPPROPRIATE use to use for-each, I thought it said appropriate LOl
Lollll So what is it
That makes so much more sense, and you were right LOL
So go with 1 and 2?
Yep
Ok whale do Thanks man!
No problemo!
I got a 60 lol

What was wrong?
The one about the innapropriate for-each loop and the all three print the same one
It was 2 and 3 only then, and probably 2 only, been a while since I touched C, rip
Oh whale ahaha still i passed thanks man
No problem, sorry about that x-x
Join our real-time social learning platform and learn together with your friends!