...and this is why I shouldn't code for 3 days straight...I'm an idiot.
I got it. Thanks so much for your help!
Type: Posts; User: spunkyk014
...and this is why I shouldn't code for 3 days straight...I'm an idiot.
I got it. Thanks so much for your help!
It looks like I'm not even entering the while loop. Why would that happen? I printed the values of k and data.length() just before the while loop and they are correct. That boolean should be true.
I did. The string is exactly what I have entered. The problem is, now it's getting stuck in an endless loop. The string class has a .length method, so that shouldn't be the problem.
--- Update...
Hello!
So I'm writing a massive code for a school project at the moment, and while I have all the complicated stuff, I am getting stuck on this simple bit. I'm trying to scan in a text file, a...