did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781418859831

Java Programming Introductory Concepts and Techniques

by ; ;
  • ISBN13:

    9781418859831

  • ISBN10:

    1418859834

  • Edition: 3rd
  • Format: Paperback
  • Copyright: 2005-08-26
  • Publisher: Cengage Learning

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $204.95 Save up to $57.39
  • Rent Book $147.56
    Add to Cart Free Shipping Icon Free Shipping

    TERM
    PRICE
    DUE
    USUALLY SHIPS IN 24-48 HOURS
    *This item is part of an exclusive publisher rental program and requires an additional convenience fee. This fee will be reflected in the shopping cart.

Supplemental Materials

What is included with this book?

Summary

Part of the highly successful Shelly Cashman Series, this text takes the project-oriented approach to learning introductory Java programming skills. With an emphasis on object-oriented programming concepts and real world examples, this book presents students with presents difficult programming concepts in a straightforward and exciting way!

Table of Contents

Preface viii
To the Student xiv
An Introduction to Java and Program Design
Objectives
1(1)
Introduction
2(1)
What Is Java?
2(1)
Characteristics of Java
3(1)
The Java Software Development Kit (SDK)
3(1)
Java Program Types
3(7)
Console and Windowed Applications
5(1)
Applets
6(1)
Servlets
7(1)
Web Services
8(1)
JavaBeans
9(1)
Programming a Computer
10(1)
The Program Development Cycle
11(11)
Analyze the Requirements --- Phase 1
14(1)
Design the Solution --- Phase 2
15(4)
Validate the Design --- Phase 3
19(1)
Implement the Design --- Phase 4
20(1)
Test the Solution --- Phase 5
21(1)
Document the Solution --- Phase 6
22(1)
Object-Oriented Programming and Design
22(4)
Object-Speak
22(4)
Object-Oriented Programming (OOP) Concepts
26(1)
Object-Oriented Case Scenario
26(1)
Encapsulation, Inheritance, and Polymorphism
26(3)
Encapsulation
27(1)
Inheritance
27(1)
Polymorphism
28(1)
Rapid Application Development (RAD)
29(1)
What Is the Java SDK?
29(3)
The Java Compiler
30(1)
The Java Virtual Machine
30(1)
The Java API
30(2)
The Java Applet Viewer
32(1)
Other Java Development Tools
32(13)
Short Answer
35(2)
Learn It Online
37(1)
Using Object Terminology
37(1)
Writing Pseudocode
38(1)
Analyzing Requirements
39(1)
Understanding Flowcharts
40(2)
Understanding Event Diagrams
42(1)
Creating a Generalization Hierarchy
42(1)
Creating Class Diagrams
42(1)
Creating an Event Diagram
42(1)
Thinking Algorithmically
43(1)
Identifying Triggers and Events
43(1)
Understanding Java Components
43(1)
Exploring Other Java Technologies
44(1)
Blog about Java Technology
44(1)
Creating a Java Application and Applet
Objectives
45(1)
Introduction
46(1)
The Welcome to My Day Program
46(1)
Program Development
47(5)
Analysis and Design
48(4)
Using TextPad
52(9)
Starting TextPad
52(2)
The TextPad Window
54(1)
Displaying Line Numbers in the TextPad Window
55(1)
Saving a TextPad Document
56(5)
Coding the Program
61(12)
Coding Comments as Documentation
61(3)
The Class Header
64(3)
The Method Header
67(3)
Coding Output
70(3)
Testing the Solution
73(1)
Compiling the Source Code
73(1)
Debugging the Solution
74(3)
System Errors
74(1)
Syntax Errors
75(1)
Semantic Errors
76(1)
Logic and Run-Time Errors
77(1)
Running the Application
77(2)
Running the Application
77(2)
Editing the Source Code
79(8)
Entering Code to Import Packages
80(2)
Entering Code to Call a System Date Constructor
82(2)
Formatting Output Using Escape Characters
84(2)
Recompiling and Running the Application
86(1)
Printing the Source Code
87(1)
Quitting TextPad
88(1)
Moving to the Web
89(12)
Opening an Existing File in TextPad
89(3)
Entering Code to Import Applet Packages
92(1)
Changing the Class Name and Extending the Applet Class
93(2)
The paint() Method
95(1)
The drawString() Method
96(2)
Entering Code to Draw an Image and Set the Background Color
98(2)
Saving a Source Code File with a New Name
100(1)
Compiling the Applet
101(1)
Creating an HTMLHost Document
101(26)
Coding an HTML Host Document
101(3)
Running an Applet
104(2)
Documenting the Applet and HTML Host Document
106(4)
Quitting TextPad
110(3)
Label the Figure
113(1)
Identify Code
114(1)
Understanding Error Messages
115(1)
Using the Java API
116(1)
Short Answer
117(1)
Learn It Online
118(2)
Writing Java Code from a Flowchart
120(1)
Analysis and Design
121(1)
Coding Your Own Splash Screen
122(1)
Converting an Application to an Applet
123(1)
Formatting Output Using Escape Characters
123(1)
Creating an Applet with a Background Color
124(1)
Rick's Riding Rodeo
125(1)
Accessing the System Date
125(1)
Looking at Applets
125(1)
Your School Logo
126(1)
Creating a Splash Screen
126(1)
Creating New Colors
126(1)
Manipulating Data Using Methods
Objectives
127(1)
Introduction
128(1)
The Body Mass Index Calculator
128(2)
Program Development
130(6)
Analysis and Design
130(6)
Starting a New Java Program in Textpad
136(1)
Coding the Program
137(2)
Entering Beginning Code
137(2)
Storing Data
139(4)
Java Data Types
139(2)
Declaring Variables
141(2)
User Input
143(7)
Streams and the System Class
143(1)
The BufferedReader Class
144(3)
User Prompts, Inputs, and Conversions
147(1)
Assignment Statements
148(2)
Operators
150(4)
Arithmetic Operators
151(2)
Comparison Operators
153(1)
Expressions
154(7)
Numeric Expressions
154(1)
Forming Valid Numeric Expressions
154(1)
Evaluation of Numeric Expressions
155(1)
Conditional Expressions
156(1)
Using Parentheses in Expressions
157(1)
Construction of Error-Free Expressions
158(1)
The Math Class
159(2)
Program Output
161(2)
Using Variables in Output
161(2)
Compiling, Running, and Documenting the Application
163(3)
Compiling the Source Code
163(1)
Running and Testing the Application
164(2)
Printing the Source Code
166(1)
Using Swing Components
166(9)
Editing the File Name
166(2)
Importing Classes from the javax.swing Package
168(1)
Deleting Existing Code
169(1)
Creating Swing Dialog Boxes
170(3)
Closing Programs That Use Swing
173(2)
Saving, Compiling, and Running the Swing Version
175(3)
Saving and Compiling the Swing Version
175(1)
Running and Testing the Swing Program
175(3)
Moving to the Web
178(13)
Implementing an ActionListener to Handle Events
178(3)
Adding Interface Components to an Applet
181(1)
Programming Conventions
182(2)
The init() Method
184(3)
The actionPerformed() Method
187(2)
The paint() Method
189(2)
Compiling the Applet
191(1)
Creating an HTML Host Document for an Interactive Applet
191(3)
Creating the Host Document
191(1)
Running and Testing an Interactive Applet
192(2)
File Management
194(23)
Label the Figure
198(1)
Identify Code
198(2)
Understanding Error Messages
200(1)
Using the Java API
200(1)
Short Answer
201(3)
Learn It Online
204(2)
Writing Java Code from Pseudocode
206(1)
Analysis and Design
207(1)
Converting from Sample Data to User Input
208(1)
Interactive Checkbook Balancing Calculator
209(1)
Income to Debt Ratio Calculator
210(2)
Creating an Applet
212(2)
Bill's Burgers
214(1)
Ohm's I Law
215(1)
Calculating the Circumference of a Circle
215(1)
Dollars and Cents
215(1)
Currency Conversion
215(1)
Using the Sun Microsystems Java Documentation
215(1)
Moving from the BufferedReader to Scanner
216(1)
Moving from Swing to Scanner
216(1)
Input Usability
216(1)
The Scanner Methods
216(1)
Decision Making and Repetition with Reusable Objects
Objectives
217(1)
Introduction
218(1)
Sales Commission
218(1)
Program Development
219(4)
Analysis and Design
220(3)
Starting a New Java Program in TextPad
223(1)
Coding the Program
224(3)
Entering Beginning Code
225(2)
Compiling and Testing the Program Stub
227(1)
Writing Methods
227(6)
Calling a Method
228(1)
Coding a Method
229(3)
Testing the getSales() Method
232(1)
The if...else Statement
233(6)
Using Operators in an if...else Statement
235(1)
Coding an if Statement to Test the Cancel Button
236(3)
Coding an if Statement to Test Multiple Conditions
239(1)
Exception Handling
239(8)
Handling Exceptions Using try and catch Statements
240(2)
Catching a NumberFormatException in the getSales() Method
242(2)
Throwing an Exception
244(3)
Repetition Structure
247(6)
The while Statement
247(3)
Testing the while Statement
250(1)
The getCode() Method
250(3)
Testing the getCode() Method
253(1)
The Case Structure
253(4)
The switch Statement
254(1)
The getComm() Method
255(2)
Formatting Numeric Output
257(5)
Coding the output() Method
258(2)
The finish() Method
260(2)
Moving to the Web
262(5)
Creating the Host Document
262(1)
Coding an Applet Stub
263(3)
Declaring Variables and Constructing Colors
266(1)
Making Decisions in Applets
267
Constructing Checkboxes
268(1)
Constructing Applet Components
269(1)
Adding Color, Components, Focus, and Listeners to the Applet
270(2)
Coding the init() Method
272(1)
Compiling and Testing the init() Method
273(2)
Handling Exceptions in the Applet Using try and catch Statements
275(2)
Coding the getSales() Method for the Applet
277(1)
Coding the getCode() Method for the Applet
278(1)
Coding the getComm() Method for the Applet
279(2)
Coding the output() Method for the Applet
281(1)
Coding the paint() Method
282(1)
Compiling and Testing the Applet
283(6)
Label the Figure
289(1)
Identify Code
289(2)
Understanding Error Messages
291(1)
Short Answer
291(3)
Learn It Online
294(1)
Multiplication Quiz
295(1)
Using switch and try Statements to Validate User Input
296(2)
Writing User-Defined Methods
298(1)
User Decisions
299(1)
Freddie's Fast Food
300(1)
Traffic Violations
301(1)
We Love Pets
302(1)
Reasonable Computers Corporation
302(1)
Wright's Garage
302(1)
Overdue Books
302(1)
Stockbroker's Commission
303(1)
Volume Computations
303(1)
What's My Color
304(1)
Formatting Output
304(1)
Using the API
304(1)
Using the printf() Method
304
APPENDIX A Flowcharting, Pseudocode, and the Unified Modeling Language (UML)
Guidelines for Preparation of Flowcharts
2(5)
Straight-Line Flowcharts
2(1)
Flowcharts with Looping
2(5)
Control Structures
7(2)
Flowcharting Tips
9(1)
Pseudocode
10(3)
The Unified Modeling Language (UML)
13(9)
Messages and Events
16(6)
APPENDIX B Installing the Java™ 2 SDK, TextPad, and Tomcat
Installing the Java™ 2 Software Development Kit (SDK)
22(4)
Installing the Java™ 2 SDK Standard Edition Documentation
26(2)
Installing TextPad
28(3)
Installing Tomcat
31(7)
Adding a New Environment Variable for Tomcat
34(4)
Configuring and Testing the Tomcat Service
38(6)
APPENDIX C Changing Screen Resolution and Setting TextPad Preferences
Screen Resolution
44(4)
Changing Screen Resolution
44(4)
Setting Preferences in TextPad
48(5)
Starting TextPad and Displaying Preferences
48(2)
Adding the Java Commands to TextPad
50(1)
Turning on Line Numbers
50(2)
Setting Other Preferences
52(1)
TextPad Editing Techniques
53(3)
APPENDIX D Compiling and Running Java Programs Using the Command Prompt Window
Using the Command Prompt Window
56(12)
Opening and Setting Properties of the Command Prompt Window
56(5)
Changing Drives and Directories
61(2)
Setting the Path and Classpath Environmental Variables
63(2)
Compiling Source Code and Running Programs at the Command Prompt
65(3)
APPENDIX E Creating Documentation with Javadoc
Using the Javadoc Utility
68(3)
Starting TextPad and Opening an Existing File
69(1)
Editing a Class Name and Saving a File with a New File Name
70(1)
Writing Doc Comments
71(4)
Writing Doc Comments for the SampleJavadoc Class
71(1)
Javadoc Tags
72(1)
Writing Doc Comments for the main() Method
73(1)
Coding Doc Comments
74(1)
Generating Documentation Using Javadoc
75
Using the Javadoc Tool
77(2)
Viewing Javadoc-Generated Documentation
79
Index 1

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program