I am trying to print out the contents of an array after invoking some methods which alter it, in Java I use:
System.out.print(Arrays.toString(alg.id));
how do I do this in c#?
I am trying to print out the contents of an array after invoking some methods which alter it, in Java I use:
System.out.print(Arrays.toString(alg.id));
how do I do this in c#?
The easiest one e.g. if you have a string array declared like this string[] myStringArray = new string[];
You may try this:
Also you may want to try something like this:
EDIT: Or as suggested in comments:
EDIT: to get output in one line [based on your comment]:
There are many ways to do it, the other answers are good, here's an alternative: