I was searching a way to get System.out.println texts and save them on a .txt file, for example:
System.out.println
System.out.println(\"Java vendor: \" + Syst
You can do,
PrintStream fileStream = new PrintStream("filename.txt"); System.setOut(fileStream);
Then any println statement will go into the file.