Page 1217 - AP Computer Science A, 7th edition
P. 1217

14. (C) You cannot use a for-each loop to replace elements, only to access (as in segment I) or modify using a mutator method (as in segment II). Note that segment III will compile and execute, but won’t replace the clocks in allClocks as intended.


































































































   1215   1216   1217   1218   1219