I'm writing a chat application in Java for didactical purposes. Of course, I met a lot of problems as I'm not an experienced programmer.
Basically my question is: Do I have to close EVERY resource (BufferedReader/Writer etc.) after the use? Even if I know I will probably reuse it?
For example: the client that waits for the user to input text, can reuse the same BufferedWriter or has to create it every time the user inputs something and then close it again?