
https://docs.oracle.com/en/java/javase/21/docs/api/search.html?q=%s to https://docs.oracle.com/en/java/javase/25/docs/api/search.html?q=%sstatic before String join(...) in the API note.To get the standard results on those processors was slower. As a pragmatic compromise, Java 1.2 allowed extended precision for intermediate computations. The strictfp keyword was introduced to force portable results. Modern processors can carry out 64-bit arithmetic efficiently. As of Java 17, the virtual machine is again required to use standard 64-bit arithmetic, and the strictfp keyword is now obsolete.
IO.print(switch (args[0])) {
case "-a" -> "🏴☠️";
case "-b" -> "🍺";
case "-h" -> "Hello,";
default -> args[0];
}
to
IO.print(switch (args[0]) {
case "-a" -> "🏴☠️";
case "-b" -> "🍺";
case "-h" -> "Hello,";
default -> args[0];
})
java.lang.IO. Add static to all methods.import static java.lang.IO.println; // the static println method is defined in that classand change
IO.println to println@see com.horstmann.corejava.Employee#<init>()to
@see com.horstmann.corejava.Employee#Employee(String, double, int, int, int)
A useless instanceof pattern is a compile-time error:
Manager boss = . . .; if (boss instanceof Employee e) . . . // ERROR: Of course it's an EmployeeAlso remove the Note that follows it. (This behavior has changed in Java 21. Now both types of
instanceof can be “useless”, i.e. always true.)
identityToString to toIdentityString (2x)Size.SMALL.toString()” to “For example, Size.SMALL.name()”"on x-axis" and "on y-axis".public static Pair longestRun(double[] values)to
public static Range longestRun(double[] values)and “the nested
Pair class” to “the nested Range class”public static, in our case)” to “(such as public static)”minmax to min (2x)Pait<Manager> to Pair<Manager>new Pair<T>(new T(); new T()) to new Pair<T>(new T(), new T()) and Pair.makePair(String.class) to makePair(String.class)java v1ch09.set.SetDemo gutenberg/alice30.txtto
java v1ch09.SetDemo gutenberg/alice30.txt
newHashSet, change numMappings to numElements (2x)java v1ch09.set.SetDemo gutenberg/crsto10.txt 100to
java v1ch09.SetDemo gutenberg/crsto10.txt 100
newThreadPerTaskExecutor method” to “the newVirtualThreadPerTaskExecutor method”
post.properties file:
url=https://codecheck.io/run
Input=
Main.java=public class Main {\n\
public static void main(String[] args) {\n\
System.out.println("Hello, World!");\n\
}\n\
}\n
Thanks to Tiru Bokka, Craig Davis, Taha Ghassemi, Amit Lamba, Stephen Lang, Dr John-Mark Odero, Michel (Mike) Rainville, Vincent Temmerman, John Westcroft, and (your name might go here) for their bug reports!
If you have found another bug in the book or in our code that is not mentioned in this bug list, then please send a report. Unfortunately, I cannot reply personally to each report, but I do read all your comments.