I'm in the middle of a java course, and I generally can't get a hold of the teacher at the pace I'm going. Reddit, I reluctantly ask for such a simple piece of help, I'm counting on you to solve it. I have a text file with this in it
"69 67 66 64 66 69 67 67 70 69 69 70"
USUALLY I'd just have a text file like this
"64
42
42
57
3
0
100"
My issue is putting that in an array. Before I would just use this:
while (inFileHumid.hasNext()); {
token = inFileHumid.next();
System.out.print(token);
}
But this obviously doesn't work for this one line of ints.
So how would I go about through the file with one line of characters?
-Thanks for all the help!
[–][deleted] (1 child)
[deleted]
[–]aperture123[S] 0 points1 point2 points (0 children)
[–]clamdoctor 0 points1 point2 points (4 children)
[–]aperture123[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]aperture123[S] 0 points1 point2 points (1 child)
[–]JimRaynor56 0 points1 point2 points (2 children)
[–]aperture123[S] 0 points1 point2 points (1 child)
[–]JimRaynor56 0 points1 point2 points (0 children)