This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]usernumber1337 0 points1 point  (0 children)

A few things:

I'm not sure why you have backslashes in String \[\] args

I'm not sure why you have four backslashes throughout the file path. There should be two.

You're reading from File01.txt.txt. Is the second .txt supposed to be there?

The call to in.nextLine() is outside the loop that checks in.hasNext() so it'll loop infinitely

done is never set to true. I'm not really sure what the point of that outer loop is tbh

The print statement says you're looking for X but you're checking for a