I have two java classes. One is a GUI class that calls the second one responsible for detecting words in a document. The second class outputs the keyword in the console. Is there a way to redirect whatever first class outputs to the console to TextArea in GUI class?
To sum up, I have plenty of System.out.println(...)
in class one and want to output all of that using my GUI class in a TextArea.