GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Java基础知识点和答案.md · leaoway/Java-Interview@29654f7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Java基础知识点和答案.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Java基础知识点和答案.md‎

Copy file name to clipboardExpand all lines: Java基础知识点和答案.md
+6-15Lines changed: 6 additions & 15 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -211,22 +211,13 @@ String c = "xx" + "yy " + a + "zz" + "mm" + b; 实质上的实现过程是: St
211211
```
212212
# 1.18 Java 如何进行文件读取?
213213

214-
1.首先获得一个文件句柄。 File fille= new File(;file即为文件句柄。两人之间连
215-
214+
FileReader类是将文件按字符流的方式读取char数组或者String.FileInputStream则按字符流的方式读取文件byte数组。
215+
- 1.首先获得一个文件句柄。 File fille= new File();file即为文件句柄。两人之间连
216216
通电话网络了。接下来可以开始打电话了
217-
218-
219-
2.通过这条线路读取甲方的信息: new FileInputStream(fe)目前这个信息已经
220-
217+
- 2.通过这条线路读取甲方的信息: new FileInputStream(fe)目前这个信息已经
221218
读进来内存当中了。接下来需要解读成乙方可以理解的东西
222-
223-
3.既然你使用了 FileInputStream()。那么对应的需要使用 InputStream Reader(
224-
219+
- 3.既然你使用了 FileInputStream()。那么对应的需要使用 InputStreamReader()
225220
这个方法进行解读刚才装进来内存当中的数据
226-
227-
228-
4.解读完成后要输出呀。那当然要转换成ⅠO可以识别的数据呀。那就需要调用字节
229-
230-
码读取的方法 Bufferedreader()。同时使用 buffered Reader(的 readline()方
231-
221+
- 4.解读完成后要输出呀。那当然要转换成IO可以识别的数据呀。那就需要调用字节
222+
码读取的方法 Bufferedreader()。同时使用 bufferedReader()的 readline()方
232223
法读取txt文件中的每一行数据哈。

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.