It was the UTF16 encoding! Thank you so much! I've toiled at this for the past week and haven't gotten any further. Much appreciated.
Type: Posts; User: Haminaya
It was the UTF16 encoding! Thank you so much! I've toiled at this for the past week and haven't gotten any further. Much appreciated.
The output is:
col=0, line before .replaceAll=��1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1<
Exception in thread "main" col=0, line after .replaceAll=1111111111111111<
47
0
0...
col printed out as 1, and the string was "1111111111111111" (which it was supposed to be). So it's having the issue where it's saying the first index is an empty string, even though it isn't.
col increments with each time the code loops, and when it reaches a value of 16 (checked through col<line.length()), it increments the value of row. It keeps doing this until row is 9 or more...
Heya! I'm having trouble converting a .txt file to ints and storing them in an array. All variables not seen have been properly initialized. Initially, I was getting an error message similar to the...