I've write codes for the main with message class and PrintWriter class. May I know how do I put the PrintWriter class in another file? As I need to put the main, message class and PrintWriter class in separated file.
What should I put in the main so that it can detect the PrintWriter class file. What should be included in PrinterWriter class file? Do I need to include public void or something like that? I'm not very sure about it.