I did that because it seemed scary to create a PrintWriter if you've already said input was finished. I'll put that logic in the constructor.