|
Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations.
abstract classes and methods
defined, 468
working with, 182–185, 183
access control, 172–174
abstract modifier, 182–185, 183
default access, 174–176
final modifier, 180–182
with overriding, 178–180, 179
private access, 174–175
protected access, 177–178
public access, 174
access modifiers, 173–174, 468
AccessExample class, 173–174
accessible memory, 109–111, 110
accessors
with data hiding, 173
defined, 468
action listeners, 333–339, 335–339
ActionListener interfaces, 334, 363
actionPerformed method
in ActionListener, 334
in DisablingNim, 350
in FancySrcCanvas, 390–391
in FileDialogPractice, 367–368
in GraphicOutputNim, 347–348
in ListeningFrame, 341
in MenuTest, 364–365
in Simple Event Lab, 339
in SimpleActionListener, 334
in SimpleNim, 342–344
source of, 339–340
in TextAreaNim, 344–345
add method
for border layout managers, 318
for buttons, 294
for choices, 303
for menu items, 307, 355
for panels, 321
ADD opcode, 7
addActionListener method
for buttons, 334–335
for menus, 363
for scrollbars, 355
addAdjustmentListener method, 355
addItemListener method
for check boxes, 352
for choices, 352, 376
addition
basic operator for, 37
increment operator for, 45–46
additive primary colors
combining, 273–274
defined, 468
addresses of bytes, 4, 4
in instructions, 16
vs. names, 26
in opcodes, 7
in SimCom, 9–10, 9
start of, 5, 61
vs. values, 12, 110
addSeparator method, 307
addTextListener method, 353
AdjustmentListener interface, 355
adjustments, events from, 355–356
adjustmentValueChanged method, 355–356
Advanced Exception Lab, 215, 216–217, 217
ageInNYears method, 126–127, 131
allocating memory
for arrays, 110
defined, 468
American Standard Code for Information Interchange (ASCII)
defined, 468
for file characters, 263
ampersands (&)
for bitwise operator, 40–41
for boolean operator, 46–48
in compound assignment, 51
as short-circuit operator, 49
analog circuits
defined, 468
uses for, 3
and operators
bitwise, 40–41
boolean, 46–48, 47–48
AnimatedIllustrations directory, 398, 403
anonymous instances, 289
api directory, 224
API pages
downloading, 396, 403
purpose of, 222–223
structure of, 224–228, 224–227
append method
for text areas, 312, 348
in TextArea, 344
Apple Developer Connection site, 401
applications, 468
argument bits, 6, 6
arguments
command-line, 235–236, 235
for methods, 60–64, 62–63
names for, 68
arithmetic operations
basic, 37–38
bitwise, 40–41, 40–41
modulo, 42
precedence in, 38–40, 39
shifting, 42–44, 42–44
unary, 44–46
ArrayIndexOutOfBoundsException class, 205–208
arrays
creating, 103–104, 103
declaring, 102
defined, 468
exercise questions for, 115–116
exercise solutions for, 421–423
garbage collection for, 114–115
indices for, 102, 104, 104, 470
initializing, 103, 105
length of, 104–105
loops for, 105–106
multidimensional, 106–108, 106, 108–109
as objects, 109–112, 110–112
vs. objects, 118–119
passing references to, 112–114, 113
ASCII (American Standard Code for Information Interchange)
defined, 468
for file characters, 263
assemblers
code in, 8, 17
defined, 468
assembly languages
code in, 8, 16, 17
vs. compiled, 17–18, 18
defined, 468
assignment operations, 16
compound, 51
operator for, 38
process, 27–28
asterisks (*)
for comments, 36
in compound assignment, 51
with import, 171
for multiplication, 37
AWT toolkit, 271
|