Skip to content

Computer Programming in Java the Easy Way

Spend $50 to get a free DVD!

ISBN-10: 0764107526

ISBN-13: 9780764107528

Edition: N/A

Authors: Douglas D. Downing

List price: $18.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $18.95
Publisher: Barron's Educational Series, Incorporated
Binding: Diskette 
Pages: 366
Size: 8.25" wide x 11.25" long x 1.00" tall
Weight: 1.694
Language: English

Prefacep. ix
Introduction to Java Programmingp. 1
Computers and Programming Languagesp. 1
Arithmetic Calculation: 2 + 2p. 2
Ten Basic Features of Javap. 3
Compiling and Running a Java Programp. 6
Calculationsp. 9
Subtraction, Multiplication, and Divisionp. 9
Including Output Labelsp. 10
Variables of Type double (Real Numbers)p. 11
Assignment Statementsp. 13
Rounding Numbersp. 16
Input from a Command Line Parameterp. 17
Character String (String) Variablesp. 18
Integer (int) and Other Numerical Variablesp. 19
Exercisesp. 23
Appletsp. 24
Calculation Example Appletp. 24
Applets and HTMLp. 26
Publishing an Applet on the World Wide Webp. 28
Including Images in Appletsp. 29
Adding Sound to an Appletp. 30
Which to Use: Application or Applets?p. 31
Ifp. 33
if/else Statementsp. 33
Logical Conditionsp. 36
And (andand), Or (\\), Not (!)p. 36
The switch Statement: Choosing Between Several Alternativesp. 38
Boolean Variables: true or falsep. 40
Exercisesp. 42
Loopsp. 43
for Loop: Compound Interestp. 43
for Loop: General Formp. 46
Datesp. 47
Nested Loopsp. 48
while Loopsp. 51
Exercisesp. 54
Arraysp. 57
Arrays and Subscriptsp. 57
Arrays of Character Strings; Sortingp. 61
Two-dimensional Arraysp. 64
Vectorsp. 67
Exercisesp. 68
Stringsp. 70
Operations on Stringsp. 70
Concatenation (+) and lengthp. 71
Substringsp. 72
Removing Blanks: trimp. 73
Reversing Strings and Palindrome Testingp. 74
Finding Strings Within Strings: indexOfp. 76
Conversion Between Strings and Numbersp. 77
Unicode Values and Encryptionp. 79
Exercisesp. 84
Methodsp. 85
Methods for Common Tasks: Rounding Numbersp. 85
Method Parametersp. 87
General Form: Method Declarationp. 89
Rounding Numbers: Improved Versionp. 90
Inserting Commas and Other Stringsp. 91
Making Methods Available in Public Classesp. 94
Methods for Playing Cards: Factorials, Combinations, and Probabilitiesp. 97
Recursionp. 101
Exercisesp. 105
Objects and Classesp. 106
Including Values in a Boat Objectp. 106
Including Methods in a Classp. 110
Multiple Objects (Instances) of a Classp. 111
Constructorsp. 114
Arrays of Objectsp. 115
Inheritance: Creating a Class by Extending Another Classp. 117
Constructors for Subclasses That Call the Superclass Constructorp. 119
Abstract Classes: No Objects Allowedp. 120
Polymorphismp. 120
Static Variables and Methodsp. 124
Overriding Methodsp. 126
Exercisesp. 135
Graphicsp. 136
Java Commands for Drawing and Filling Shapesp. 136
Smiling Face Appletp. 140
Converting a Java Applet to a Windows-based Java Applicationp. 145
Colorsp. 149
Mathematical Curvesp. 151
JAR Filesp. 161
Time Series Line Graphp. 162
Fontsp. 166
Including a Graphing Method in Our Boat Classp. 168
Exercisesp. 171
Filesp. 172
Input and Output from Text Filesp. 172
Generating the HTML File for an Appletp. 172
Writing to a File Named by the Userp. 175
Reading from a Text Filep. 176
Copying from One File to Anotherp. 177
Copying Selected Lines of One File to Another Filep. 178
Alphabetizing the Lines in a Filep. 181
Files of Objectsp. 183
File Dialog Windowp. 186
Exercisesp. 189
Mathematical Operationsp. 190
Square Root (sqrt) and Absolute Value (abs)p. 190
Trigonometric Functions (sin, cos, tan)p. 191
Polar Coordinatesp. 194
Pie Chartsp. 197
Logarithms and Exponential Functionsp. 202
Numerical Integrationp. 204
Exercisesp. 206
Windows Programming: Mouse Clicks and Buttonsp. 210
Windows, Events, and the Abstract Windowing Toolkit (AWT)p. 210
Mouse Clicksp. 212
Dynamic Graphsp. 215
Buttonsp. 219
Outline Codep. 220
Programming with Buttons to Change Colorsp. 221
Exercisesp. 227
Windows Programming: Dialog Boxes and Menusp. 228
Message Boxesp. 228
Input Boxesp. 233
Check Boxes, Radio Buttons, and Choice Boxesp. 235
Menusp. 241
Including a Menu in an Appletp. 250
Exercisesp. 254
Windows Programming: Keyboard Input, Printing, Scrolling, and the Clipboardp. 255
Text Fieldsp. 255
Key Eventsp. 256
A Printing Example: A Curve Graphing Program with an Adjustable Scalep. 259
Scrollingp. 275
Using the Clipboard in a Small Word Processing Programp. 278
Exercisesp. 287
Programming Strategyp. 288
Computers and Programming Languagesp. 288
Why Program in Java?p. 289
Guidelines for Writing Java Programsp. 293
Fixing Compiler Errorsp. 296
Exceptionsp. 300
Logic Errorsp. 302
Gamesp. 304
Types of Computer Gamesp. 304
Scoreboard Timerp. 305
Quick Trivia Quiz Gamep. 308
Football Strategy Gamep. 315
Bouncing Ballsp. 322
Exercisesp. 326
Scientific Applicationsp. 327
Scientific Modelsp. 327
Navigating Across the Surface of the Earthp. 328
This Is Only the Beginningp. 335
Exercisesp. 336
Appendices
Summary of Java Keywords and Standard Packages and Classesp. 340
HTMLp. 343
About the Discp. 345
Standard Variable Names Used in This Bookp. 347
Code Generatorp. 349
Indexp. 358
Table of Contents provided by Syndetics. All Rights Reserved.