How do I add String to a char array?
问题 public static void main (String[] args) { char[][] c = {{'a', 'b', 'c'}, {'d', 'e', 'f'}}; show(c); } public static void show (char[][] c) { for (int i = 0; i < c.length; i++) { System.out.println(c[i]); I want a space between each letter. I tried to write + " " after c[i] but then I get this warning: "Must explicitly convert the char[] to a String". How I am supposed to add a string to my array? Thanks in advance! 回答1: Right now what you are doing wrong is, you are printing each sub-array. I