Old MacDonald Had A Farm.
From Huben's Wiki
Line 2: | Line 2: | ||
Download these two files: | Download these two files: | ||
− | * | + | * [http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/Animal.java Animal.java] |
− | * | + | * [http://dl.dropbox.com/u/20086520/AP%20Comp%20Sci/CH11/McDonald/TestAnimal.java TestAnimal.java] |
into a new folder, and then load them into DrJava. | into a new folder, and then load them into DrJava. | ||
− | Don't look at Animal. | + | Don't look at Animal.java. Just look at TestAnimal.java. |
Instructions are in TestAnimal.java. When you are successful, the program will inform you. At that point, you can uncomment the "Animal.song();" line, and you should get a correct rendition of the song. When you know how to make your computer read the song, we can put the instructions here. | Instructions are in TestAnimal.java. When you are successful, the program will inform you. At that point, you can uncomment the "Animal.song();" line, and you should get a correct rendition of the song. When you know how to make your computer read the song, we can put the instructions here. |