Can you input a string of text from the console window into a char array?
Or do you have to save it in a string, and then do a "s1.getChars( 0, 5, charArray, 0 );"
Also,
I noticed that you can't initiate a char array using the same syntax
as C++ (char myArray[] = "Hello"; ) but you have to do "char[] myArray = {'H','e','l','l','o'};"
Somewhat annoying, is there another way?
I'm using scanner to get input.
Also,
does char fields in Java not put the \0 in the end?
In C++ you couldn't create char field[3] = "Hey";
Because it needs 4 spots - H, e, Y, \0
but in Java I did "char[] falt = {'h','e','j'};" and it worked fine.