out
between System
and println
.
$
character is missing from the list of allowed
characters for identifiers.
x = x + 1is quite meaningful as an assignment, but as an equality it is equivalent to false.
--
, not a dash.
hits += 6;
is short for hits = hits + 6;
hits *= count;
is short for hits = hits * count;
r.height = 3
s
as the instance name, not r
.
String[] args
instead of String[]args
.
r.height = 3
".
power is available
x <= 0 and throw an exception
int
variable ...
~/javaAPI
.
output
incorrectly capitalized.
abs
method in the
Math
class API
m
is ...
type.util.PrintStream2
.
Enter the height:"));
number = -14;
f = new Fraction(intput.nextLong(), input.nextLong());
IO
with Scanner
.
if (!(x >= a) || !(x < b))
if (x < a || x >= b)
while (condition)
.
fileName = chooser...
new Scanner(new File(filename));
fileInput.close();
or fileOutput.close();
Enter filename ...
lab5data.txt
final String DAY_CODE = "0 1 2 3 4 5 6 "; final String DAY_NAME = "SunMonTueWedThuFriSat";
final String CODE1 = "0 1 2 3 "; final String NAME1 = "Sunday Monday Tuesday Wednesday"; final String CODE2 = "4 5 6 "; final String NAME2 = "Thursday Friday Saturday";
new
in the RHS before StringBuffer
.
new
in the RHS before StringBuffer
.
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
.