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

                816 Index UnicodeDisplay program, 462
Unintended empty statements, 455–56 Universal constants, 535
Universal serial bus, 6–7 Unserialization, 622
Update component of for loop, 129 Uppercase letters. See Capital letters Urban legends, 8
USB flash drives, 6–7
User, 29
User queries. See Queries User-friendliness of boolean variables,
138
Utility methods, 352, 354
V
validate method, 698 valueOf method, 518 Variables
arrays as, 373
assignment syntax, 66–68
Boolean, 135–39
class versus instance types, 198–99
as constants, 72
converting data type, 81–82
declaration syntax, 65–66, 761
defined, 27
garbage values, 80
index, 130, 131, 134, 216–17
initialization syntax, 68–69
local, 211, 216–18
naming, 27–28, 223, 262, 300
numeric data types for, 69–70
primitive versus reference, 85–86, 203–4,
205
random number generation, 176–81 scope of, 131
temporary, 258, 259
Vertical-gap arguments, 699, 704 vi text editor, 16
void modifier, 61, 218, 220, 754 Volatile memory, 6
volatile reserved word, 754
W
WARNING_MESSAGE icon, 670 Web sites
Java API, 153–54, 322
Java documentation, 87
JDK installation instructions, 18 Swing library, 734–35
Unicode, 463, 745–48 Webopedia, 2
while loops
assignment statements in, 448 for input validation, 138–39 overview, 123–26
when to use, 132–33
While loops (pseudocode), 37–38, 39 while reserved word, 754
while statements, 126
White illumination, 544, 675, 677 Whitespace
above comments, 303 defined, 92
to format text data, 611 nextLine method and, 93 removing, 171–72
Width and height parameters, 184 Wildcards, 154–55, 329
Windows (GUI). See also Graphical user
interfaces (GUIs)
basic component overview, 651–52 border sizes, 592
JLabel components, 652 JRadioButton components, 724–26 JTextArea components, 719–20, 721 JTextField components, 653–54 listener implementation, 657–58 menus, scroll bars, and sliders, 734–38
Windows operating system, 323
Word processors, 15–16
World Wide Web, 14–15. See also Web sites Wrapper classes
with ArrayLists, 414–17, 423 basic features, 161–64
Character class, 165–66
for floating-point numbers, 161, 437 for integers, 161, 435
toString methods, 518 Wrapper objects, 415
writeChars method, 619 WriteObject program, 622, 624, 626 WriteTextFile program, 605, 606 WriteTextFile2 program, 607 writeToFile method, 582, 584
X
xPixels parameter, 584–85 x-y coordinates, 182–84
Y
yPixels parameter, 585
Z
BorderLayout manager features,
Apa Zero
g
PDF Enhancer
o
6
design and layout manager overview,
694–96
dialog boxes versus, 667 FlowLayout manager features, 650,
696–98
GridLayout manager features, 704–7 inner classes for, 658–62
JButton component overview, 662–67 JCheckBox components, 721–24 JComboBox components, 726–28 JFrame class features, 649–51
98
–704
division by, 40–41, 273, 579 as flag character, 175 starting counts at, 38, 372
Zero-parameter constructors, 267–70, 484, 486
0x prefix, 460, 748 ZIP Codes, 120–22 .zip files, 758


















   847   848   849   850   851