public void setupPartyList() { peanut = new dog("peanut", "bichon"); fifi = new dog("fifi", "poodle"); clarence = new dog("clarence", "german"); gizelle = new dog("gizelle", "buorder collie"); lulu = new dog("lulu", "shitzu"); roy = new dog("roy", "beagle"); peanut.prev_dog = null; peanut.next_dog = fifi; fifi.prev_dog = peanut; fifi.next_dog = clarence; clarence.prev_dog = fifi; clarence.next_dog = gizelle; gizelle.prev_dog = clarence; gizelle.next_dog = lulu; lulu.prev_dog = gizelle; lulu.next_dog = roy; roy.prev_dog = lulu; roy.next_dog = null; head = peanut; tail = roy; }
public void setupPartyList() { peanut = new dog("Peanut", "Bichon"); fifi = new dog("fifi", "Poodle "); clarence = new dog("Clarence", "German Sheppard"); Giselle = new dog("Giselle", "Border Collie"); Lulu = new dog("Lulu", "Shitzu"); roy = new dog("Roy", "Beagle"); peanut.prev_dog = null; peanut.next_dog = fifi; fifi.prev_dog = peanut; fifi.next_dog = clarence; clarence.prev_dog = fifi; clarence.next_dog = Giselle; Giselle.prev_dog = clarence; Giselle.next_dog = Lulu; Lulu.prev_dog = Giselle; Lulu.next_dog = roy; roy.prev_dog = Lulu; roy.next_dog = null; head = peanut; tail = roy; }
public string printPartyList() { string inviteList = "*------*"; temporary = head; while (temporary.next_dog != null) { inviteList += temporary.dog_name + " * --- * "; temporary = temporary.next_dog; } inviteList += temporary.dog_name + " * --- * "; return(inviteList); }
public string printPartyList_reverse() { string inviteList = "*------*"; temporary = tail; while (temporary.previous_dog != null) { inviteList += temporary.dog_name + " * --- * "; temporary = temporary.previous_dog; } inviteList += temporary.dog_name + " * --- * "; return(inviteList); }
public void setupPartyList() { peanut = new dog("Peanut", "Bichon"); fifi = new dog("Fifi", "Poodle"); clarence = new dog("Clarence", "German Sheppard"); roy = new dog("Roy", "Beagle"); guisselle = new dog("Guisselle", "pista"); lulu = new dog("Lulu", "Libra"); peanut.previous_dog = null; peanut.next_dog = fifi; fifi.previous_dog = peanut; fifi.next_dog = clarence; clarence.previous_dog = fifi; clarence.next_dog = roy; roy.previous_dog = clarence; roy.next_dog = guisselle; guisselle.previous_dog = roy; guisselle.next_dog = lulu; lulu.previous_dog = guisselle; lulu.next_dog = null; head = peanut; tail = lulu; }