Task 7 of 10 · 0 solved · 10 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

4.1 Objects and fields — double the size

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in doubleSize so that it changes the box: its size field becomes twice as large. The method returns nothing.

The program prints 10 — the change survives after the method ends, because the object is shared.

Your solution