2025/26 Example code not working - Unit 2 - Class Structure and Design

None of provided practice examples are compiling. Anyone else found this?

So I discovered when I paste the code in the student version it runs ok but it doesn’t run in the Example window. Anyone else found this?

@robertg Thank you for your post. I am wondering if you have tried the example code in the Sandbox? Could you please provide the Lesson and Level that is causing the issue?

Sylvia

2 Likes

Hi Robert,

I went into unit 2 and noticed that the first level that involves coding on the predict level on unit 2 lesson 2 does have an intentional error– the instance variables are private, and the runner class attempts to access them. The instructions on levels 2 and on have students change the code in ways that fixes those errors. It can certainly feel confusing when the starter code has errors!
Is this what you were asking about? Please let us know the specific spot that isn’t working for you with a link or a screenshot so we can help.

Best,

Lindsay

2 Likes