using System.Collections.Generic; namespace GFGGame { public class ArrayUtil { public static string JoinArrayToString(T[] array) { string result = ""; foreach(object i in array) { result += i.ToString() + ","; } if(result.Length > 0) { result = result.Substring(0, result.Length - 1); } return result; } } }