How would I print a simple paragraph on a piece of paper the same way System.out.println("words") would work? Using a printwriter to put it in a .txt file and printing from there would also be a viable option.
            Asked
            
        
        
            Active
            
        
            Viewed 82 times
        
    1 Answers
0
            
            
        Possible duplicate? How do I create a file and write to it in Java?
PrintWriter writer = new PrintWriter("the-file-name.txt", "UTF-8");
writer.println("The first line");
writer.println("The second line");
writer.close();
 
    
    
        invincibles04
        
- 109
- 3
- 13
- 
                    this is something entirely different. It doesn't print through a printer, for instance. – Stultuske Sep 24 '18 at 10:58
