Exemplo n.º 1
0
            public string reverseprintPartyList()
            {
                string inviteList = "*--";
                temporary = tail;

                while (temporary.prev_dog != null)
                {


                    inviteList += temporary.dog_name + " * --- * ";


                    temporary = temporary.prev_dog;
                }
                inviteList += temporary.dog_name + " * --- * ";
                return inviteList;

            }
Exemplo n.º 2
0
            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;

            }
Exemplo n.º 3
0
            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;



            }