|
IDE (Integrated Development Environment)
in Macintosh, 404
in Windows, 400
if statements, 74–76
immutable classes, 229
immutable objects, 470
implements keyword, 188
import statement, 171–172
importing
defined, 470
packages, 170–172
in variable, 241–242
inaccessible memory, 109–111, 110
increment operator, 45–46
incrementing program counter, 7
indexOf method, 266–267, 382
indices
array, 102, 104, 104
defined, 470
indirect addresses, 7
information from events, 339–343, 340, 342
Inherit Lab animated illustration, 144–145, 144–145
inheritance, 140–142
with constructors, 146–152, 149
defined, 470
example, 145–146
exercise questions for, 160–161
exercise solutions for, 426–431
with interfaces, 189–190, 189
method overriding in, 152–153, 152
polymorphism with, 154–160
from superclasses, 142–145, 144–145
initialization
array, 103, 105
in for loops, 87, 87, 97
input, file. See files
instance variables, 130, 470
instanceof keyword
catch blocks with, 212–216, 216
for references, 191–192
instruction sets, 18
int data type
ranges of, 21
with result types, 52–53, 53
wrapper class for, 240
integers
data types for, 21
defined, 471
two’s complement format for, 21–24 , 22–23
Integrated Development Environment (IDE)
in Macintosh, 404
in Windows, 400
interfaces, 188
data in, 192–194
defined, 471
exercise questions for, 195–196
exercise solutions for, 431–435
extending, 194–195
method declarations in, 188–189
objects and references in, 190–192
interpreted compiled languages
defined, 471
Java as, 19
introductory material
exercise questions for, 13
exercise solutions for, 406–407
memory, 2–4, 3–4
SimCom virtual computer, 5–12, 6, 9
inversion operator, 46–48
invoking methods, 60
IOException class, 214, 218, 251–252
italic font style, 284–285
item events, 351–353
ItemListener interface, 352
itemStateChanged method
in CboxAndChoice, 353
in ColorChoiceTest, 375
in ColorTest, 373–374
in FancySrcFrame, 371
in ItemListener, 351–352
|