code.org Answers
Answers to code.org questions.
Lesson 2
2.1
- EXCEPTION error. No .java files are provided. Probably due to wrong file name.
- No, wrong file name.
- Yes, Java files must have the .java extension.
- There is an error. The
p
inmyPainter.move();
must be capitalized. - Yes, code is case-sensitive.
2.2
error: reached end of file while parsing
Need another }
to finish code.
- Yes, each opening curly brace needs a closing curly brace.
-
error: not a statement
anderror: ';' expected
, meaning the command syntax is wrong.
Correct syntax: mypainter.move();
- See #3
- Yes, the error is fixed.