This content has been marked as final. Show 3 replies
If you call setGoals, then goal0, goal2, goal4, and goal6 will be set to true. Note that this has nothing to do with goals, etc.
Doing goals = goal0, does NOT make goals "mirror" changes to goal0 or vice versa. It just sets goal to whatever value goal0 has at that point.
You're changing the value of the single boolean variables in the setGoals() method, but you're printing out the values in the array, which are totally different values. Take out the goal0, goal1, etc variables, and just use the array.
Ahh, I see. Beginner's mistake... :)
Thanks to all who answered!