The Art of Java
Features complex code examples that demonstrate the elegance and artistry of Java, while offering various tips and tricks.
1017953306
The Art of Java
Features complex code examples that demonstrate the elegance and artistry of Java, while offering various tips and tricks.
49.0 In Stock
The Art of Java

The Art of Java

The Art of Java

The Art of Java

Paperback

$49.00 
  • SHIP THIS ITEM
    In stock. Ships in 1-2 days.
  • PICK UP IN STORE

    Your local store may have stock of this item.

Related collections and offers


Overview

Features complex code examples that demonstrate the elegance and artistry of Java, while offering various tips and tricks.

Product Details

ISBN-13: 9780072229714
Publisher: McGraw-Hill/Osborne Media
Publication date: 07/25/2003
Series: In-Depth Programming and Web Development Ser.
Pages: 370
Product dimensions: 7.44(w) x 9.26(h) x 0.81(d)

Table of Contents

Prefaceix
Chapter 1The Genius of Java1
Simple Types and Objects: The Right Balance2
Memory Management Through Garbage Collection3
A Wonderfully Simple Multithreading Model4
Fully Integrated Exceptions5
Streamlined Support for Polymorphism5
Portability and Security Through Bytecode6
The Richness of the Java API6
The Applet7
The Continuing Revolution8
Chapter 2A Recursive-Descent Expression Parser9
Expressions10
Parsing Expressions: The Problem11
Parsing an Expression12
Dissecting an Expression13
A Simple Expression Parser17
Understanding the Parser24
Adding Variables to the Parser25
Syntax Checking in a Recursive-Descent Parser35
A Calculator Applet36
Some Things to Try38
Chapter 3Implementing Language Interpreters in Java39
What Computer Language to Interpret?40
An Overview of the Interpreter42
The Small BASIC Interpreter42
The Small BASIC Expression Parser64
Small BASIC Expressions64
Small BASIC Tokens65
The Interpreter70
The InterpreterException Class70
The SBasic Constructor70
The Keywords72
The run() Method73
The sbInterp() Method74
Assignment75
The PRINT Statement76
The INPUT Statement78
The GOTO Statement79
The IF Statement82
The FOR Loop82
The GOSUB85
The END Statement87
Using Small BASIC87
More Small BASIC Sample Programs88
Enhancing and Expanding the Interpreter90
Creating Your Own Computer Language90
Chapter 4Creating a Download Manager in Java91
Understanding Internet Downloads92
An Overview of the Download Manager93
The Download Class94
The Download Variables98
The Download Constructor98
The download() Method98
The run() Method99
The stateChanged() Method102
Action and Accessor Methods103
The ProgressRenderer Class103
The DownloadsTableModel Class104
The addDownload() Method106
The dearDownload() Method107
The getColumnClass() Method107
The getValueAt() Method108
The update() Method108
The DownloadManager Class109
The DownloadManager Variables115
The DownloadManager Constructor115
The verifyUrl() Method116
The tableSelectionChanged() Method117
The updateButtons() Method117
Handling Action Events119
Compiling and Running the Download Manager119
Enhancing the Download Manager120
Chapter 5Implementing an E-mail Client in Java121
E-mail Behind the Scenes122
POP3123
IMAP123
SMTP123
The General Procedure for Sending and Receiving E-mail123
The JavaMail API124
An Overview of Using JavaMail124
A Simple E-mail Client125
The ConnectDialog Class126
The DownloadingDialog Class132
The MessageDialog Class134
The MessagesTableModel Class141
The EmailClient Class145
Compiling and Running the E-mail Client163
Expanding Beyond the Basic E-mail Client165
Chapter 6Crawling the Web with Java167
Fundamentals of a Web Crawler168
Adhering to the Robot Protocol169
An Overview of the Search Crawler171
The SearchCrawler Class172
The SearchCrawler Variables190
The SearchCrawler Constructor190
The actionSearch() Method191
The search() Method193
The showError() Method196
The updateStats() Method196
The addMatch() Method197
The verifyUrl() Method198
The isRobotAllowed() Method199
The downloadPage() Method202
The removeWwwFromUrl() Method203
The retrieveLinks() Method203
The searchStringMatches() Method210
The crawl() Method211
Compiling and Running the Search Web Crawler214
Web Crawler Ideas215
Chapter 7Rendering HTML with Java217
Rendering HTML with JEditorPane218
Handling Hyperlink Events219
Creating a Mini Web Browser220
The MiniBrowser Class221
The MiniBrowser Variables226
The MiniBrowser Constructor227
The actionBack() Method227
The actionForward() Method228
The actionGo() Method228
The showError() Method229
The verifyUrl() Method229
The showPage() Method230
The updateButtons() Method232
The hyperlinkUpdate() Method232
Compiling and Running the Mini Web Browser233
HTML Renderer Possibilities234
Chapter 8Statistics, Graphing, and Java235
Samples, Populations, Distributions, and Variables236
The Basic Statistics237
The Mean237
The Median238
The Mode239
Variance and Standard Deviation240
The Regression Equation242
The Correlation Coefficient243
The Entire Stats Class246
Graphing Data250
Scaling Data250
The Graphs Class251
The Graphs final and Instance Variables255
The Graphs Constructor257
The paint() method258
The bargraph() Method262
The scatter() Method262
The regplot() Method263
A Statistics Application263
The StatsWin Constructor268
The itemStateChanged() Handler269
The actionPerformed() Method270
The shutdown() Method270
The createMenu() Method271
The DataWin Class271
Putting Together the Pieces272
Creating a Simple Statistical Applet274
Some Things to Try276
Chapter 9Financial Applets and Servlets277
Finding the Payments for a Loan278
The RegPay Fields283
The init() Method283
The actionPerformed() Method286
The paint() Method286
The compute() Method287
Finding the Future Value of an Investment287
Finding the Initial Investment Required to Achieve a Future Value292
Finding the Initial Investment Needed for a Desired Annuity296
Finding the Maximum Annuity for a Given Investment301
Finding the Remaining Balance on a Loan305
Creating Financial Servlets310
Using Tomcat310
Converting the RegPay Applet into a Servlet311
The RegPayS Servlet311
Some Things to Try316
Chapter 10Al-Based Problem Solving317
Representation and Terminology318
Combinatorial Explosions320
Search Techniques322
Evaluating a Search322
The Problem322
A Graphic Representation323
The FlightInfo Class325
The Depth-First Search325
An Analysis of the Depth-First Search336
The Breadth-First Search336
An Analysis of the Breadth-First Search338
Adding Heuristics339
The Hill-Climbing Search340
An Analysis of Hill Climbing345
The Least-Cost Search346
An Analysis of the Least-Cost Search347
Finding Multiple Solutions348
Path Removal349
Node Removal350
Finding the "Optimal" Solution356
Back to the Lost Keys361
Index367
From the B&N Reads Blog

Customer Reviews