数组、栈转字符串
static void Main(String[] args){
int[] nums = new int[] { 1, 2, 3, 4, 5, 6 };
String a = String.Concat(nums); //数组转成字符串 123456
String a2 = String.Join(" ", nums); //数组每个元素间多了空格1 2 3 4 5 6
String a3 = String.Join("###", nums); //数组每个元素间插入了### 1###2###3###4###5###6
Stack<char> stack = new Stack<char>();
stack.Push('a');
stack.Push('b');
stack.Push('c');
String s = String.Concat(stack); //栈中字符连接成字符串 cba
String s2 = String.Join(" ", stack); //栈中字符间多了空格 c b a
String str = String.Concat(s.Reverse()); //字符串翻转 abc
Console.WriteLine(str);
Console.ReadKey();
}