The “Unique Colors” option for level 7 of lesson 6 requires students to use a nested if statement to make sure all of the colors are equal. Nested if statements are not taught until the following lesson. Is this intended?
After reading a couple other, unrelated topics, I reviewed the lesson submitting my concerns.
I am on this lesson currently and noticed that as well. Also, I swear instanceof has not been covered yet, did I miss something in a previous lesson?
Hi @tlarocque,
Thank you for bringing your concerns to the forum and pointing this out. I agree with you, nested if’s are introduced in lesson 7, right after this lesson. I’m glad you reviewed the lesson. I will do the same and hopefully others that stumble across this will also. I think the more this is brought to the curriculum teams attention, the higher up the priority stack it will go.
@jeff.rhodes, its good to hear from you! At first glance I missed the instanceof method. It is discussed in the lesson slides here:
I’m not sure if I’m oversimplifying it for my students, but I told them they can basically copy and paste lines 1 thru 8 of the overridden equals() method and beyond that they need to make an appropriate algorithm depending on how we will determine equality.
Best,
-Sam