Monday’s activity

Sorry for the last-minute notice, but class will be canceled on Monday, Sep 9th.

Instead of having lecture, you should print out this crazy 4-page Java program, and with zero-to-three fellow CPSC 240 students of your choice, work through it manually and figure out what the output of the program is. (By “the output of the program” I mean “what will the program print to the screen when it runs?”) You and your teammates will want to create a stack-and-heap diagram as you work through this.

(Needless to say, you are not allowed to use a Java compiler or any other way of getting a computer to give you the answer, since that would ruin the whole point of the exercise, which is to understand how memory works in a Java program.)

If you don’t know any of your fellow students’ contact info, that’s okay: just show up at the normal classroom at the normal time and pick some partners there! Or if you really want to do this activity by yourself, you can (but it’s hard).

You can earn one extra credit point by sending an email to me (stephen _AT_ umw _DOT_ edu) with subject line “CPSC 240 extra credit turnin” and your predicted program output as the body of the email. You only need to send me one email per team, but you should Cc: all the other members of the team. This extra credit endeavor is due to my inbox no later than midnight, Tuesday Sep 10.

Good luck!