I have something like the below:
char[] array = new char[5];
String a = "HELLO";
String b = "WORLD";
array[0] = a.toCharArray();
array[1] = b.toCharArray();
I get error "incompatible types, char[] cannot be converted to char". My final product I'd like something like the below:
array = {{H},{E},{L},{L},{O}},{{W},{O},{R},{L},{D}};
array becomes a [2][5] array in the end result. Is toCharArray() the incorrect method to use?