Printing char arrays in Java
Solution is to use new String(c): And the “” + is really bogus and should be removed. Below is why you get what you get. System.out is a PrintStream. println() has an overload for println(char[] x): Prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and … Read more