UnderlayTypeList.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:Quavo 作者:
@Override
public void print() {
    File dir = new File(Constants.TYPE_PATH);

    if (!dir.exists()) {
        dir.mkdir();
    }

    File file = new File(Constants.TYPE_PATH, "underlays.txt");
    try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) {
        Arrays.stream(lays).filter(Objects::nonNull).forEach((UnderlayType t) -> {
            TypePrinter.print(t, writer);
        });
        writer.flush();
    } catch (IOException e) {
        e.printStackTrace();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号