| 1234567891011121314151617181920 | 
							- using System.Collections.Generic;
 
- namespace GFGGame
 
- {
 
-     public class ArrayUtil<T>
 
-     {
 
-         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;
 
-         }
 
-     }
 
- }
 
 
  |