Created
October 12, 2012 20:06
-
-
Save applegateaustin/3881221 to your computer and use it in GitHub Desktop.
old MacDonald
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OldMacDonald { | |
private String animal; | |
public void setAnimal(String newAnimal){ | |
animal = newAnimal; | |
} | |
public String getAnimal(){ | |
return animal; | |
} | |
public void sing(){ | |
System.out.println("Old MacDonald had a farm, EE-I-EE-I-O"); | |
System.out.println("And on the farm he had a " + + " EE-I-EE-I-O"); | |
//System.out.println("Here a " + + ", " + "there a " + + ", " + "everywhere a " + + "-" +); | |
System.out.println("Old MacDonald had a farm, EE-I-EE-I-O"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment