Grade 11 Computer Science · The bridge to Java

Common mistakes in the move

The habits from Python that cost dearly in the new language.

Mistakes that return even after you understand

You can explain correctly exactly why indentation does not settle a block in Java, and still forget a brace in the very next program. The mistakes in this lesson do not come from not knowing, so their cure is not another explanation either.

All four mistakes below are not mistakes of ignorance but of habit. They come from the hand continuing to write as in the previous language, and so they recur even after the rule is understood.

A scenario: The first program moved over — at each step a course of action is chosen and its consequence shown; 7 possible situations.