Skip to content

Commit 98fafd4

Browse files
committed
Various output fixes
1 parent 910b036 commit 98fafd4

27 files changed

+28
-25
lines changed

collections/EnvironmentVariables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5+
// {ValidateByHand}
56
import java.util.*;
67

78
public class EnvironmentVariables {
@@ -12,4 +13,3 @@ public static void main(String[] args) {
1213
}
1314
}
1415
}
15-
/* Output: (Execute to see) */

collectionsindepth/Lists.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static void main(String[] args) {
125125
testLinkedList();
126126
}
127127
}
128-
/* Output: (First and last 2 Lines)
128+
/* Output: (First and Last 2 Lines)
129129
[ALGERIA, ANGOLA, BENIN, BOTSWANA, BURKINA FASO, BURUNDI,
130130
CAMEROON, CAPE VERDE, CENTRAL AFRICAN REPUBLIC, CHAD,
131131
COMOROS, CONGO, DJIBOUTI, EGYPT, EQUATORIAL GUINEA,

collectionsindepth/References.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static void main(String[] args) {
6363
}
6464
}
6565
}
66-
/* Output: (First and last 10 Lines)
66+
/* Output: (First and Last 10 Lines)
6767
Just created: java.lang.ref.SoftReference@19e0bfd
6868
Just created: java.lang.ref.SoftReference@139a55
6969
Just created: java.lang.ref.SoftReference@1db9742

compression/GZIPcompress.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// {Args: GZIPcompress.java}
6+
// {ValidateByHand}
67
import java.util.zip.*;
78
import java.io.*;
89

@@ -37,4 +38,3 @@ public class GZIPcompress {
3738
}
3839
}
3940
}
40-
/* Output: (Execute to see) */

compression/ZipCompress.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Uses Zip compression to compress any
66
// number of files given on the command line
77
// {Args: ZipCompress.java}
8+
// {ValidateByHand}
89
import java.util.zip.*;
910
import java.io.*;
1011
import java.util.*;
@@ -67,4 +68,3 @@ public class ZipCompress {
6768
}
6869
}
6970
}
70-
/* Output: (Execute to see) */

control/WhileTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args) {
1616
System.out.println("Exited 'while'");
1717
}
1818
}
19-
/* Output: (First and last 5 Lines)
19+
/* Output: (First and Last 5 Lines)
2020
true, Inside 'while'
2121
true, Inside 'while'
2222
true, Inside 'while'

go.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gradlew --parallel --daemon run > output.txt 2> errors.txt
2+
START /min "C:\Program Files\Windows Media Player\wmplayer.exe" %windir%\media\Alarm07.wav
3+
rem find . -size 0 -type f

iostreams/BasicFileOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5+
// {ValidateByHand}
56
import java.io.*;
67

78
public class BasicFileOutput {
@@ -23,4 +24,3 @@ public class BasicFileOutput {
2324
System.out.println(BufferedInputFile.read(file));
2425
}
2526
}
26-
/* Output: (Execute to see) */

iostreams/BufferedInputFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5+
// {ValidateByHand}
56
import java.io.*;
67

78
public class BufferedInputFile {
@@ -21,4 +22,3 @@ public class BufferedInputFile {
2122
System.out.print(read("BufferedInputFile.java"));
2223
}
2324
}
24-
/* Output: (Execute to see) */

iostreams/FileOutputShortcut.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5+
// {ValidateByHand}
56
import java.io.*;
67

78
public class FileOutputShortcut {
@@ -22,4 +23,3 @@ public class FileOutputShortcut {
2223
System.out.println(BufferedInputFile.read(file));
2324
}
2425
}
25-
/* Output: (Execute to see) */

0 commit comments

Comments
 (0)