19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

796 Index<br />

Hardware, 2<br />

Has-a relationships<br />

in aggregation models, 382–383<br />

<strong>com</strong>position and, 437<br />

Heap, dynamic memory allocation and, 239<br />

Height, in text fonts, 493<br />

Helper classes, 448<br />

Helper methods, recursive<br />

overview of, 746<br />

RecursivePalindrome.java, 746–747<br />

Hertz (Hz), clock speed in, 3<br />

Hex integer literals, 49<br />

Hexadecimal numbers<br />

converting <strong>to</strong>/from binary, 364, 763<br />

converting <strong>to</strong>/from decimals, 191–193, 348–350, 763<br />

Hexagons, drawing, 491–492<br />

Hidden data fields, referencing, 373–374<br />

High-level languages, 10–12<br />

Hilbert curve, 766<br />

Horizontal scroll bars, 655<br />

Horizontal sliders, 657, 659<br />

Horizontal text positioning, 470<br />

HTML (Hypertext Markup Language)<br />

tag, 673<br />

defining applet parameters, 679<br />

DisplayLabel.html, 673–674<br />

DisplayMessage.html, 679–680<br />

scripting language for document layout, 14<br />

viewing applets from Web browser, 674<br />

H-trees<br />

fractals, 766<br />

recursive approach <strong>to</strong>, 738<br />

Hz (Hertz), clock speed in, 3<br />

I<br />

Icons. see Image icons<br />

Identifiers, 40<br />

IDEs (integrated development environments)<br />

for creating/editing <strong>Java</strong> source code, 19–20<br />

overview of, 16<br />

IEEE (Institute of Electrical and Electronics Engineers), floating<br />

point standard (IEEE 754), 45<br />

if statements<br />

<strong>com</strong>mon errors, 93–95<br />

in <strong>com</strong>puting body mass index, 97–99<br />

in <strong>com</strong>puting taxes, 99–101<br />

conditional opera<strong>to</strong>r used with, 112<br />

nesting, 91<br />

overview of, 84–85<br />

SimpleIfDemo.java example, 85–86<br />

if-else statements<br />

conditional expressions and, 112<br />

dangling else ambiguity, 94–95<br />

multi-way, 91–93<br />

overview of, 89–91<br />

recursion and, 744<br />

IllegalArgumentException class, 527<br />

Image class, 504<br />

Image icons<br />

ComboBoxDemo.java, 649<br />

creating and placing, 691–692<br />

default icons, pressed icons, and rollover icons, 469<br />

displaying images, 504<br />

overview of ImageIcon class, 465–466<br />

TestImageIcon.java example, 466–467<br />

Images<br />

case study: ImageViewer class, 506–507<br />

DisplayImage.java example, 505<br />

displaying, 504–505<br />

ImageViewer.java example, 507–508<br />

SixFlags.java example, 506–507<br />

ImageViewer class<br />

ImageViewer.java example, 507–508<br />

overview of, 506–507<br />

Immutable<br />

BigInteger and BigDecimal classes, 397–398<br />

class, 370<br />

objects, 370–371<br />

Rational class, 589<br />

String object, 336–337<br />

wrapper classes, 394<br />

Implementation (coding), in software development process,<br />

59–61<br />

Implementation methods, 207–210<br />

Implicit casting, 64, 425<br />

Importing<br />

importing package in<strong>to</strong> program, 23–24<br />

JFrame package, 449<br />

types of import statements, 24<br />

Increment (++) opera<strong>to</strong>r, 54–56<br />

increment method, in Increment.java example, 186–187<br />

Incremental development<br />

benefits of stepwise refinement, 210<br />

coding incrementally, 137<br />

testing and, 61<br />

Indentation, programming style, 25<br />

Indexed variables, 226–227<br />

Indexes<br />

accessing elements in arrays, 224, 226<br />

finding characters/substrings in a string, 342–343<br />

string index range, 340<br />

indexOf method, 342–343<br />

Indirect recursion, 741<br />

Infinite loops, 136<br />

Infinite recursion, 741<br />

Information<br />

getting information about exceptions, 529–530<br />

hiding (encapsulation), 203<br />

Inheritance<br />

ArrayList object, 430–431<br />

calling subclass construc<strong>to</strong>rs, 414–415<br />

calling superclass methods, 417<br />

case study: cus<strong>to</strong>m stack class, 436–437

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!