Java I/O 02. The PrintWriter class - writing to a file

preview_player
Показать описание
This video is about the PrintWriter class, which is used to print to a file.

/**
* The PrintWriter class:
* To write to a file, use the PrintWriter class
**/

public class PrintWriterClass {
public static void main(String[] args) throws Exception {


}

PrintWriter out = new PrintWriter(testFile);

// print Strings

// print ints, doubles, booleans

// flush out the buffer

}

}

Рекомендации по теме
Комментарии
Автор

My java.io doesn't contain PrintWriter class what should I do?

nisreentariq