Java – constructor printwriter (bufferedwriter) undefined

I'm trying to create a report that I show syntax errors

be used for:

new PrintWriter(new BufferedWriter(new FileWriter(new File(OUT_FOLDER,"emailable-test-run-report.html"))));

I use JDK 1.7

Someone can guide me to finish this thank you!

Solution

I have a similar question – for clarity, you need to have the following lines at the top of the sketch:

import java.io.BufferedWriter;
import java.io.FileWriter;
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>