The first three weeks of AP Computer Science have mostly been review from my knowledge of C++. Java borrows most of its syntax from C++, so it has been very easy learning about the basics of programming in Java such as variables, operators, and methods. What has been challenging is learning all of the idiosyncrasies of how Java methods handle various types. The worksheets have been very useful in this regard, but I still sometimes have trouble with specific cases. One such case is when a character is added to an integer and the result is printed, for example: System.out.println('A' + 5). The result is an integer, not a character. This is very different from System.out.println("A" + 5), where the output is the string "A5". I am not sure how many of these idiosyncrasies will be on the AP test, but I think I should try to learn as many as possible just in case.
I have also been able to set up the various editors I will use to do labs this year. I had already had some experience with Eclipse, so I decided to use that as my primary editor. The complication with using Eclipse, however, is that each compile unit has to be in its own project. I did not want to create projects for each lab, so I created a generic project called lab where I would do each of my labs one at a time. When I finished with a lab, I saved it into a new .java file following Mr. Steven's naming conventions. I think this will work well for the first labs which are short, but I am not sure that this scheme will work for larger projects. In that case, I will have to create separate projects.
Weston
No comments:
Post a Comment