I have a char [], and I want to set the value of every index to the same char value. There is the obvious way to do it (iteration):
char []
char
<
Use Arrays.fill
Arrays.fill
char f = '+'; char [] c = new char [50]; Arrays.fill(c, f)