i understand how to print into a file but don't understand how to allow the user to input text so that it stores in the text file.


import java.io.File;
import java.io.FileWriter;
import...