I have a scanner and set the delimiter to "", but it still won’t read spaces with the following method (). I know that nextline () works, but I need to examine each character in the input individually, including spaces; this is for the complex task of data analysis. I'm at a dead end. Google did not find anything.
Can anyone help me with this? I think about turning a space into a special character, and then to analyze the character, put it back in the space contained in the line ... It looks like it's too complicated! Is there a more elegant way to do this?
EDIT: My main task is to take a string and list it by character several times to examine the data for various tasks. You will have to examine it many times, one character at a time, and so I thought that the scanner class would be my best choice, since it can be easily worked with (at least for me). This is my task. Is there an easier way to do this?
source share