Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 6 Problems
Java Reference Sheet
candySwap
Objective(s): Practice working with arrays of objects.
Given an array of Candy
objects, swap the first and last Candy
objects.
Swapping elements causes some trouble with many students new to programming. Be careful not to make mistakes in later problems!