Skip to content

Instantly share code, notes, and snippets.

@applegateaustin
Created October 12, 2012 20:06
Show Gist options
  • Save applegateaustin/3881221 to your computer and use it in GitHub Desktop.
Save applegateaustin/3881221 to your computer and use it in GitHub Desktop.
old MacDonald
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