Read carefully, trace precisely, and connect the ideas from numbers to strings.
Read the line carefully and decide what really appears on the screen.
Focus on integer division, double division, and the final stored value.
The cast looks small, but its position can change the whole answer.
Track each step instead of trusting your first instinct.
Name, parameter count, parameter types, and return type should all be visible to you.
Decide whether main compiles. If not, say the one thing that must change.
Now let one Math call join a small arithmetic expression.
Now combine several Math tools inside one expression.
Focus on range size, offset, and whether the cast happens at the right time.
Read indexes carefully before you trust the substring result.
Watch what gets copied, what gets reassigned, and what still prints the old text.
Stay inside String methods: equals and compareTo already tell you plenty.
Decide what changes, what stays, and what gets combined.
One is a real string object. The other is not an object at all.
These mix several Unit 1 number ideas at once, so slow down and organize your thinking.
These combine substring, concatenation, escaping, and careful reading.
Take these foundations with you into the next unit.