Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ca318d

Browse files
committed
Adjustments around validation and %n
1 parent 3c96d6d commit 7ca318d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

concurrent/CountingStream.java

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

newio/AvailableCharSets.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Displays Charsets and aliases
6-
// !!!! CI has trouble
76
import java.nio.charset.*;
87
import java.util.*;
98

onjava/HTMLColors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void showInv(Map<String,Integer> m, int count) {
224224
.limit(count)
225225
.forEach(e ->
226226
System.out.format(
227-
"%-20s 0x%06X\n", e.getKey(), e.getValue()));
227+
"%-20s 0x%06X%n", e.getKey(), e.getValue()));
228228
}
229229
public static void showInv(Map<String,Integer> m) {
230230
showInv(m, m.size());

operators/Underscores.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String[] args) {
99
System.out.println(d);
1010
int bin = 0b0010_1111_1010_1111_1010_1111_1010_1111;
1111
System.out.println(Integer.toBinaryString(bin));
12-
System.out.printf("%x%n", bin);
12+
System.out.printf("%x%n", bin); // [1]
1313
long hex = 0x7f_e9_b7_aa;
1414
System.out.printf("%x%n", hex);
1515
}

0 commit comments

Comments
 (0)