![]() |
ErrataCritical entries are listed by chapter. |
out
between System
and println
.
$
character is missing from the list of allowed
characters for identifiers.
--
, not a dash.
r.height = 3
s
as the instance name, not r
.
r.height = 3
".
~/javaAPI
.
output
is incorrectly capitalized.
m
, not M
. Also, if there is no
"most specific" method (e.g. there are two equally specific methods),
the compiler produces an "ambiguous invocation" error.
IO
with while (condition)
.
new Scanner(new File(filename));
Enter filename ... lab5data.txt
new
in the RHS before StringBuffer
.
replaceAll
should be
"[+-]?[0-9]+"
.
false
is not conclusive
because the titleCaseName
field is static
(i.e.
it remains the same object even if the reference is copied in the accessor). To obtain
a conclusive test, replace with the delimiter
field.
readLine(): String
should be in
BufferedReader
and read(): int
should be
in Reader
.
type:lib
as the package of UniPanel
,
not type:lang
.
add
with put
in Map
.
remove
signatureremove(Object o)
.
Iterator
and <k>
.
Collections.sort(bag);
and
output.println(bag);
are missing from the bottom of Fig. 10.6. The second one is
also missing from the bottom of Fig. 10.7.
COLOR
is a List
.
getRandom
in type.lib.Money
Money
instances is uniform
in [1000,3000)
(not [-1000,1000)
).