19.09.2015 Views

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Index 787<br />

passing <strong>to</strong> methods, 237–240<br />

processing, 227–229<br />

questions and exercises, 255–262<br />

returning from methods, 240–241<br />

searching, 245–248<br />

serializing, 728–729<br />

size and default values, 226<br />

sorting, 248–252, 574–576<br />

summary, 253–254<br />

treating as objects in <strong>Java</strong>, 304<br />

variable-length argument lists, 244–245<br />

Arrays, two-dimensional<br />

case study: finding closest pair of points, 272–273<br />

case study: grading multiple-choice test, 270–272<br />

case study: Sudoku, 274–277<br />

declaring variables and creating two-dimensional arrays,<br />

264–265<br />

obtaining length of two-dimensional arrays, 265–266<br />

overview of, 263–264<br />

passing <strong>to</strong> methods <strong>to</strong> two-dimensional arrays, 269–270<br />

processing two-dimensional arrays, 267–269<br />

questions and exercises, 281–294<br />

ragged arrays, 266–267<br />

summary, 281<br />

Arrays class, 252–253<br />

Arrows keys, on keyboards, 8<br />

Ascent, in text fonts, 493<br />

ASCII (American Standard Code for Information Interchange)<br />

character data type (char) and, 63<br />

data input and output streams, 717<br />

encoding scheme, 4<br />

text encoding, 710<br />

text I/O vs. binary I/O, 711<br />

asin method, trigonometry, 197–198<br />

Assemblers, 10<br />

Assembly language, 10<br />

Assignment opera<strong>to</strong>r (=)<br />

augmented, 53–54<br />

overview of, 42–43<br />

Assignment statements (assignment expressions)<br />

assigning value <strong>to</strong> variables, 36<br />

overview of, 42–43<br />

Associativity, of opera<strong>to</strong>rs, 116<br />

atan method, trigonometry, 197–198<br />

Attributes, object, 296<br />

AU files, audio formats, 693<br />

Audio files<br />

applets for playing, 693–694<br />

case study: national flags and anthems, 695–697<br />

DisplayImagePlayAudio.java, 694<br />

AudioClip objects, 693–694<br />

Au<strong>to</strong>boxing/Au<strong>to</strong>unboxing, 396–397<br />

AWT (Abstract Windows Toolkit)<br />

Applet class, 447, 672<br />

Color class, 460–462<br />

Component class. see Component class<br />

Container class. see Containers/ Container class<br />

Date class, 308–309, 567–568<br />

Dialog class, 447<br />

Dimension class, 448<br />

Error class, 524, 526<br />

event classes in, 603<br />

EventObject class, 602–603, 605<br />

exceptions. see Exception class<br />

FigurePanel class, 485–488<br />

File class, 541–543, 710<br />

FlowLayout class. see FlowLayout class<br />

Font class, 461–462<br />

Frame class, 447<br />

GeometricObject class, 560–563<br />

Graphics class. see Graphics class<br />

GregorianCalendar class in. see GregorianCalendar class<br />

GridLayout class. see GridLayout class<br />

GuessDate class, 388–391<br />

IllegalArgumentException class, 527<br />

Image class, 504<br />

ImageViewer class, 506–508<br />

InputMismatchException class, 522–523, 547<br />

KeyEvent class, 621<br />

LayoutManager class, 448<br />

MalformedURLException class, 551<br />

MessagePanel class, 495–497<br />

MouseEvent class, 617–619<br />

Point class, 617–618<br />

Polygon class, 490<br />

Scanner class. see Scanner class<br />

String class, 336<br />

Swing vs., 446<br />

B<br />

Babylonian method, 217<br />

Background color, setting, 463<br />

Backslash character (\), as direc<strong>to</strong>ry separa<strong>to</strong>r, 542<br />

Base cases, in recursion, 744<br />

BASIC, high-level languages, 11<br />

Bean machine game, 258–259, 514, 633<br />

beginIndex method, for obtaining substrings from<br />

strings, 341<br />

Behaviors (actions), object, 296<br />

Behind the scene evaluation, expressions, 116<br />

BigDecimal class, 397–398, 565<br />

Binary<br />

files, 710<br />

machine language as binary code, 9–10<br />

opera<strong>to</strong>rs, 47<br />

searches, 246–248, 748–749<br />

binary digits (Bits), 4<br />

Binary I/O<br />

BufferedInputStream and BufferedOutputStream<br />

classes, 719–722<br />

characters and strings in, 716

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

Saved successfully!

Ooh no, something went wrong!