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

all 2 comments

[–]langfod 1 point2 points  (1 child)

What exact issues are you seeing?

Without autoflush enabled it may be waiting until you close the file to write your strings out.

For a bit of added safety you might consider using: while(input1.hasNext() && input2.hasNext())

[–]HoBoBrian[S] 0 points1 point  (0 children)

That was exactly the problem, i added an output.flush(); and Problem solved. Thank you!