Question: how to export data to text file in java?
Answer: import java.io.FileWriter; ... 
public WriteFile( String file_path , boolean append_value ) {
path = file_path; ... 
} ... 
FileWriter write = new FileWriter( path , append_to_file); ... 
PrintWriter print_line = new PrintWriter( write ); ... 
print_line. ... 
print_line.printf( "%s" + "%n" , textLine);