Problem Set 1 is now posted, and is due at the beginning of class on Tuesday, 31 August.
-
Recent Posts
Recent Comments
Categories
- Announcements (44)
- Assignments (10)
- Classes (21)
- Exams (6)
- News (1)
Archives
- July 2011 (1)
- December 2010 (3)
- November 2010 (11)
- October 2010 (14)
- September 2010 (24)
- August 2010 (12)
Blogroll
Meta
Question 3 reads:
Note that void playOldSongTempo(int) specifies the type of the method, but for your declaration you will need to give the parameter a name also. So, your procedure for question 3 should start like the one for question 2:
static void playOldSongTempo(int tempo) { ... }The static is necessary if you want to invoke your method directly from main, without creating a FuguFugueOrig object. The static qualifier for a method indicates that there is no this object for the method.