I basically want to display an array from a method with a method on my main method. The first method is the one with the array and the second one is the one that I want to use to display it but I don't know how.
Sorry if this is painfully obvious, I just can't figure it out
static public string[] MakeInsults(string[] sNames, string[] sVerbs, string[] sObjects, out int iNumber)
{
Random random = new Random();
Utility.GetValue(out iNumber, "Enter the number of insults to generate: ", 5, 100);
string[] Insults = new string[iNumber];
for (int i = 0; i < Insults.Length; i++)
{
Insults[i] = sNames[random.Next(0, 4)] + " " + sVerbs[random.Next(0, 4)] + " " + sObjects[random.Next(0, 4)];
}
return Insults;
}
static public string DisplayInsults(string[] sInsults)
{
//Use this to display MakeInsults()
}