Wowwwwwwww. Thanks a lot!
Type: Posts; User: deejaypanininini
Wowwwwwwww. Thanks a lot!
So my code is just about finished for a project I have due tomorrow. However there's one part that's still preventing the code from being compiled completely. Here's the error it returns.
...
The file contains 5 numbers: 0, 1, 5, -9, and -10. Aren't these all in the int range?
Edit: fixed it. I moved my for loop out and changed the while loop into an if statement and put it in the for...
I don't know why my code isn't working. It's worked before but I don't know why this time it isn't.
public static void inputData() throws IOException{
Scanner...
Would that be using the while (inputFile.hasNext()) ?
Did I do it right?
My code's not working and I don't know why. I'm trying to read numerical values from a file and saving all instances where a letter is entered instead of a number to a string to be referenced as an...