Skip to content

Commit f654405

Browse files
author
turingfly
committed
IO
1 parent 91a59cd commit f654405

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Java-8/src/io/FileClass.java

-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ public static void main(String[] args) {
3939
fc.creat();
4040
fc.fileObject();
4141
}
42-
4342
}

Java-8/src/io/IteractingWithUsers.java

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public void readLineTest() throws IOException {
2323
throw new RuntimeException("Console not available");
2424
} else {
2525
console.writer().print("How excited are you about your trip today? ");
26+
/**
27+
* Flushes the console and forces any buffered output to be written
28+
* immediately .
29+
*/
2630
console.flush();
2731
String excitementAnswer = console.readLine();
2832
String name = console.readLine("Please enter your name: ");

Java-8/src/io/StreamsContinue.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static void main(String[] args) throws IOException {
139139
*
140140
* The reason that we do not is that there are some classes that we want to
141141
* instruct the JVM not to serialize. In particular, process-heavy classes such
142-
* as the Thread class or any of the Stream classes would be diffi cult, often
142+
* as the Thread class or any of the Stream classes would be difficult, often
143143
* impossible, to save to persistent storage, since much of their work involves
144144
* managing JVM processes or resources in real time.
145145
*

0 commit comments

Comments
 (0)