Reading values out from an ArrayList in an independent function
<p>I am having troubling reading my values out of an ArrayList. The compiler goes into the ReadOutFromArray function, but skips the Console.WriteLine(st)? Can anyone tell me where I went wrong. Been on it for a couple of hours chasing my tail. Thanks.</p>

<pre><code>using System;
using System.IO;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace BoolEx
{
    class Program
    {
        static void Decision(ArrayList decis)
        {
            bool ans = true;

            decis = new ArrayList();
            //ArrayList aList = new ArrayList();
            while (ans)
            {
                Console.WriteLine("1=True 0=False");
                int x = Int32.Parse(Console.ReadLine());

                if (x == 1)
                {
                    ans = true;
                }
                else
                {
                    ans = false;
                }

                if (ans == true)
                {
                    ReadInArray(decis);
                }
                else
                {

                    ReadOutArray(decis);
                }
            }
        }
        static void ReadInArray(ArrayList f)
        { 
            f= new ArrayList();
            Console.WriteLine("Enter in a name");
            f.Add(Console.ReadLine());
        }

        static void ReadOutArray(ArrayList d)
        {
            d = new ArrayList();
            ReadInArray(d);

            foreach (string st in d)
            {
                Console.WriteLine(st);
            }
        }

        static void Main(string[] args)
        { 
            ArrayList g = new ArrayList();
            Decision(g);
        }
    }
}
</code></pre>
