Page 838 - Introduction to Programming with Java: A Problem Solving Approach
P. 838

                  Index
   SYMBOLS
! (not) operator, 118
!= operator, 108
'' (double quotes), 26, 62
% (modulus) operator, 75
% symbol, with format specifier, 174 %% conversion specifier, 454
%= operator, 80
&& (and) operator, 111–15, 453–54 () (parentheses). See Parentheses
* (asterisk)
lines of, 59, 759, 767
as multiplication operator, 28
as multiplicity value, 474
to set off block comments, 58–59 as wildcard character, 154–55
*= operator, 80 + (plus sign)
as addition operator, 28
for concatenation, 63, 66, 83, 440 in formal pseudocode, 47
in UML diagrams, 216
++ (increment) operator, 79, 443–45 += operator, 79, 87, 124
- (hyphen)
as formatting flag, 175
as subtraction operator, 11, 28 in UML diagrams, 216
— (decrement) operator, 79, 445–46 –= operator, 79
/ (slash)
in compound assignment operator, 80 as division operator, 11, 28
to set off comments, 58–59
/= operator, 80
0x prefix, 460, 748 ; (semicolon)
in do loops, 126
for empty statements, 454–56
required for Java statements, 11, 62, 65
< operator, 108
<= operator, 108
<> (angled brackets)
in ArrayList syntax, 409 in HTML tags, 613
for required descriptions, 32
= (equals sign), 66, 108, 401 == operator
avoiding for string comparisons, 116–17, 254–55
equals method and, 511, 513
purpose, 108, 252–53 > operator, 108
>= operator, 108
[] (square brackets)
in array declarations, 373
in arrays with two or more dimensions,
396–97, 402 purpose, 61, 174
\ (backslash) character, 83–84, 627 {} (braces)
in formal pseudocode, 47 positioning, 61–62, 761–63 in switch statements, 120
|| (or) operator, 116–18, 453–54
A
Abbreviations, 64
abs method, 156
Absolute paths, 627
abstract methods and classes, 530–33 abstract modifier, 534, 751
Abstract Windowing Toolkit, 679–80
Abstractions, 198
inputs, 29
LinePlotGUI program, 585–86
linked lists, 359
looping structures in, 36–42
output design, 26–27
pseudocode varieties, 46–48
sequential search, 388
sorting, 393–94
for swapping values, 257–59
Towers of Hanoi, 790
tracing, 42–46
variables, operators, and assignment in,
27–29 Aliasing, 248
Alignment
of BorderLayout region labels, 703–4 in coding conventions, 763–64
with FlowLayout manager, 697, 704
al-Khwarizmi, Muhammad ibn Musa, 26n
American Standard Code for Information
804
Access modifiers, defined, 60. See also spe- Interchange (ASCII). See ASCII values
Apago PDF Enhancer
cific modifiers
Ancestor classes, 482 “And” operator, 111–15 Angled brackets
in ArrayList syntax, 409 in HTML tags, 613
for required descriptions, 32
Anonymous inner classes, 659–62 Anonymous objects
ArrayLists using, 417–19 defined, 417
JLabel, 729
listeners as, 660–61
in PrintWriter constructor calls, 608
API headings
ArrayList methods in, 410–12 basic features, 156, 157
API library
Arrays.sort method, 394–96 Calendar class, 329–31 collection classes, 364
equals methods in, 513 exception handling with, 571
file manipulation classes, 602–4 GUI classes in, 647–49, 679–80 line-drawing methods, 584 overview, 153–55
package hierarchies, 755–56 shape-drawing classes, 544
use in bottom-up design, 322
Apollo project, 325
append method, 621
Appending data to files, 606–8, 621
Access time, 6
Accessing object data, 197, 224–25 Accessor methods, 224–25, 304–5
acos method, 158, 160
Action states in UML diagrams, 778 ActionListener interface, 658, 662,
680
actionPerformed methods, 657–58,
664–67, 711
Activity diagrams, 778–80 Adapter classes, 682
add method, 651, 714–15 addActionListener method
JButton, 663 JCheckBox, 722 JComboBox, 728 JRadioButton, 726 JTextField, 654
Addition
in precedence of operations, 76, 77 symbol for, 28
AfricanCountries program, 701–4 Aggregations
defined, 472
with inheritance, 490–93 using, 472–79
Algorithms
binary search, 392 defined, 10, 26
formats for, 26
growth modeling, 232–34 if statements, 31–35
   836   837   838   839   840