- 浏览: 3724 次
- 性别:
- 来自: 深圳
最新评论
文章列表
1. 新建maven项目,编写测试类,和main方法,在pom.xml文件中添加如下内容:
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
</properties>
<!-- 添加相应的依赖包 -->
< ...
FileWriter
and
PrintWriter
are the character representation of IO. That means it can be used to write characters. Internally FileWriter
would use the default character set of the underlying OS and convert the characters to bytes and write it to the disk.
PrintWriter
& FileWriter
...