zoukankan      html  css  js  c++  java
  • 第三周

    所花时间:一下午+一晚上+一天

    代码行:95

    博客量:两篇

    了解到的知识点:

      大数组:BigDecimal:

    文件的导出与导入:

     1 File newFile = new File("E:\\eclipse-workspace\\数组\\Shu.txt");//文本文档的位置
     2         if(!newFile.exists()) {
     3             System.out.println("文件无法打开!");
     4         }
     5         FileOutputStream out = new FileOutputStream(newFile);
     6          
     7 out.write(String.valueOf("最大数:").getBytes());
     8     out.write(String.valueOf(max).getBytes());
     9     out.flush();
    10     out.close();
    11     FileReader reader=new FileReader("E:\\eclipse-workspace\\数组\\Shu.txt");
    12     BufferedReader br=new BufferedReader(reader);
    13     String line;
    14     while((line=br.readLine())!=null) {
    15         System.out.println(line);
    16     }
    17     }

    同时推荐文件相关安全性代码:

    https://blog.csdn.net/qq_29347295/article/details/78361412

  • 相关阅读:
    117. Populating Next Right Pointers in Each Node II
    50. Pow(x, n)
    494. Target Sum
    Word Ladder
    HDU 4417
    POJ 2104
    POJ 3277
    【转】图论500题
    POJ 2991
    POJ 1436
  • 原文地址:https://www.cnblogs.com/smartisn/p/10533300.html
Copyright © 2011-2022 走看看