Do you need help?

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!

Skills Practiced:
3.C
3.D
4.A
4.B
Copyright © StudyCS 2025 All rights reserved.