I want to enter characters in a character array, dynamically, at run time, using java. But I am not able to find any scanner function for it. If i give input as a string and then extract characters from it, then also the spaces are not being read. I want to enter characters in a character array