
Java Programming
Introductory Concepts and Techniques
By:Â Gary B. Shelly, Thomas J. Cashman, Joy Starks
Book with Other Items | 1 April 2003 | Edition Number 2
Sorry, we are not able to source the book you are looking for right now.
We did a search for other books with a similar title, however there were no matches. You can try selecting from a similar category, click on the author's name, or use the search box above to find your book.
| Preface | p. viii |
| To the Student | p. xiv |
| Data Disk Download Instructions | p. xvi |
| An Introduction to Java and Program Design | |
| Objectives | p. 1 |
| Introduction | p. 2 |
| What Is Java? | p. 2 |
| Characteristics of Java | p. 3 |
| The Java Software Development Kit (SDK) | p. 3 |
| Java Program Types | p. 3 |
| Console and Windowed Applications | p. 5 |
| Applets | p. 6 |
| Servlets | p. 7 |
| Web Services | p. 8 |
| JavaBeans | p. 9 |
| Programming a Computer | p. 10 |
| The Program Development Cycle | p. 11 |
| Analyze the Requirements | p. 14 |
| Design the Solution | p. 15 |
| Validate the Design | p. 19 |
| Implement the Design | p. 20 |
| Test the Solution | p. 21 |
| Document the Solution | p. 22 |
| Object-Oriented Programming and Design | p. 22 |
| Object-Speak | p. 22 |
| Object-Oriented Programming (OOP) Concepts | p. 26 |
| Object-Oriented Case Scenario | p. 26 |
| Encapsulation, Inheritance, and Polymorphism | p. 26 |
| Encapsulation | p. 27 |
| Inheritance | p. 27 |
| Polymorphism | p. 28 |
| Rapid Application Development (RAD) | p. 29 |
| What Is the Java SDK? | p. 29 |
| The Java Compiler | p. 30 |
| The Java Virtual Machine | p. 30 |
| The Java API | p. 30 |
| The Java Applet Viewer | p. 32 |
| Other Java Development Tools | p. 32 |
| Chapter Summary | p. 34 |
| Key Terms | p. 34 |
| Homework Assignments | p. 35 |
| Short Answer | p. 35 |
| Learn It Online | p. 37 |
| Programming Assignments | p. 37 |
| Using Object Terminology | p. 37 |
| Writing Pseudocode | p. 38 |
| Analyzing Requirements | p. 39 |
| Understanding Flowcharts | p. 40 |
| Understanding Event Diagrams | p. 42 |
| Creating a Generalization Hierarchy | p. 42 |
| Creating Object Structure Diagrams | p. 42 |
| Creating an Event Diagram | p. 42 |
| Thinking Algorithmically | p. 43 |
| Identifying Triggers and Events | p. 43 |
| Creating a Java Application and Applet | |
| Objectives | p. 1 |
| Introduction | p. 2 |
| The Welcome to My Day Program | p. 2 |
| Program Development | p. 3 |
| Analysis and Design | p. 4 |
| Using TextPad | p. 8 |
| Starting TextPad | p. 8 |
| The TextPad Window | p. 10 |
| Displaying Line Numbers in the TextPad Window | p. 11 |
| Saving a TextPad Document | p. 12 |
| Coding the Program | p. 17 |
| Coding Comments as Documentation | p. 17 |
| The Class Header | p. 20 |
| The Method Header | p. 23 |
| Coding Output | p. 26 |
| Testing the Solution | p. 29 |
| Compiling the Source Code | p. 29 |
| Debugging the Solution | p. 30 |
| System Errors | p. 30 |
| Syntax Errors | p. 31 |
| Semantic Errors | p. 32 |
| Logic and Run-Time Errors | p. 33 |
| Running the Application | p. 33 |
| Editing the Source Code | p. 35 |
| Entering Code to Import Packages | p. 36 |
| Entering Code to Call a System Date Constructor | p. 38 |
| Formatting Output Using Escape Characters | p. 40 |
| Recompiling and Running the Application | p. 42 |
| Printing the Source Code | p. 43 |
| Quitting TextPad | p. 44 |
| Moving to the Web | p. 45 |
| Opening an Existing File in TextPad | p. 45 |
| Entering Code to Import Applet Packages | p. 48 |
| Changing the Class Name and Extending the Applet Class | p. 49 |
| The paint() Method | p. 51 |
| The drawString() Method | p. 52 |
| Entering Code to Draw an Image and Set the Background Color | p. 54 |
| Saving a Source Code File with a New Name | p. 56 |
| Compiling the Applet | p. 57 |
| Creating an HTML Host Document | p. 57 |
| Coding an HTML Host Document | p. 57 |
| Running an Applet | p. 60 |
| Documenting the Applet and HTML Host Document | p. 62 |
| Quitting TextPad | p. 65 |
| Chapter Summary | p. 66 |
| What You Should Know | p. 67 |
| Key Terms | p. 68 |
| Homework Assignments | p. 69 |
| Label the Figure | p. 69 |
| Identify Code | p. 70 |
| Understanding Error Messages | p. 71 |
| Using the Java API | p. 72 |
| Short Answer | p. 73 |
| Learn It Online | p. 74 |
| Debugging Assignment | p. 75 |
| Programming Assignments | p. 76 |
| Writing Java Code from a Flowchart | p. 76 |
| Analysis and Design | p. 77 |
| Coding Your Own Splash Screen | p. 78 |
| Converting an Application to an Applet | p. 79 |
| Formatting Output Using Escape Characters | p. 79 |
| Creating an Applet with a Background Color | p. 80 |
| Rick's Riding Rodeo | p. 81 |
| Accessing the System Date | p. 81 |
| Looking at Applets | p. 81 |
| Your School Logo | p. 82 |
| Creating a Splash Screen | p. 82 |
| Creating New Colors | p. 82 |
| Manipulating Data Using Methods | |
| Objectives | p. 1 |
| Introduction | p. 2 |
| The Body Mass Index Calculator | p. 2 |
| Program Development | p. 4 |
| Analysis and Design | p. 4 |
| Starting a New Java Program in TextPad | p. 10 |
| Coding the Program | p. 11 |
| Entering Beginning Code | p. 11 |
| Storing Data | p. 13 |
| Java Data Types | p. 13 |
| Declaring Variables | p. 15 |
| User Input | p. 17 |
| Streams and the System Class | p. 17 |
| The BufferedReader Class | p. 18 |
| User Prompts, Inputs, and Conversions | p. 21 |
| Assignment Statements | p. 22 |
| Operators | p. 24 |
| Arithmetic Operators | p. 25 |
| Comparison Operators | p. 27 |
| Expressions | p. 28 |
| Numeric Expressions | p. 28 |
| Forming Valid Numeric Expressions | p. 28 |
| Evaluation of Numeric Expressions | p. 29 |
| Conditional Expressions | p. 30 |
| Using Parentheses in Expressions | p. 31 |
| Construction of Error-Free Expressions | p. 32 |
| The Math Class | p. 33 |
| Program Output | p. 35 |
| Using Variables in Output | p. 35 |
| Compiling, Running, and Documenting the Application | p. 37 |
| Compiling the Source Code | p. 37 |
| Running and Testing the Application | p. 38 |
| Printing the Source Code | p. 40 |
| Using Swing Components | p. 40 |
| Editing the File Name | p. 40 |
| Importing Classes from the javax.swing Package | p. 42 |
| Deleting Existing Code | p. 43 |
| Creating Swing Dialog Boxes | p. 44 |
| Closing Programs that Use Swing | p. 47 |
| Saving, Compiling, and Running the Swing Version | p. 49 |
| Saving and Compiling the Swing Version | p. 49 |
| Running and Testing the Swing Program | p. 49 |
| Moving to the Web | p. 52 |
| Implementing an ActionListener to Handle Events | p. 52 |
| Adding Interface Components to an Applet | p. 55 |
| Programming Conventions | p. 56 |
| The init() Method | p. 58 |
| The actionPerformed() Method | p. 61 |
| The paint() Method | p. 63 |
| Compiling the Applet | p. 65 |
| Creating an HTML Host Document for an Interactive Applet | p. 65 |
| Creating the Host Document | p. 65 |
| Running and Testing an Interactive Applet | p. 66 |
| File Management | p. 68 |
| Chapter Summary | p. 69 |
| What You Should Know | p. 70 |
| Key Terms | p. 71 |
| Homework Assignments | p. 72 |
| Label the Figure | p. 72 |
| Identify Code | p. 72 |
| Understanding Error Messages | p. 74 |
| Using the Java API | p. 74 |
| Short Answer | p. 75 |
| Learn It Online | p. 78 |
| Debugging Assignment | p. 79 |
| Programming Assignments | p. 80 |
| Writing Java Code from Pseudocode | p. 80 |
| Analysis and Design | p. 81 |
| Converting from Sample Data to User Input | p. 82 |
| Interactive Checkbook Balancing Calculator | p. 83 |
| Income to Debt Ratio Calculator | p. 84 |
| Creating an Applet | p. 86 |
| Bill's Burgers | p. 88 |
| Ohm's Law | p. 89 |
| Calculating the Area of a Circle | p. 89 |
| Dollars and Cents | p. 89 |
| Currency Conversion | p. 89 |
| Using the Sun Microsystems Java Documentation | p. 89 |
| Decision Making and Repetition with Reusable Objects | |
| Objectives | p. 1 |
| Introduction | p. 2 |
| Sales Commission | p. 2 |
| Program Development | p. 3 |
| Analysis and Design | p. 4 |
| Starting a New Java Program in TextPad | p. 7 |
| Coding the Program | p. 8 |
| Entering Beginning Code | p. 9 |
| Compiling and Testing the Program Stub | p. 11 |
| Writing Methods | p. 11 |
| Calling a Method | p. 12 |
| Coding a Method | p. 13 |
| Testing the getSales() Method | p. 16 |
| The if...else Statement | p. 17 |
| Using Operators in an if...else Statement | p. 19 |
| Coding an if Statement to Test the Cancel Button | p. 20 |
| Coding an if Statement to Test Multiple Conditions | p. 23 |
| Exception Handling | p. 23 |
| Handling Exceptions Using try and catch Statements | p. 24 |
| Catching a NumberFormatException in the getSales() Method | p. 26 |
| Throwing an Exception | p. 28 |
| Repetition Structure | p. 31 |
| The while Statement | p. 31 |
| Testing the while Statement | p. 34 |
| The getCode() Method | p. 34 |
| Testing the getCode() Method | p. 37 |
| The Case Structure | p. 37 |
| The switch Statement | p. 38 |
| The getComm() Method | p. 39 |
| Formatting Numeric Output | p. 41 |
| Coding the output() Method | p. 42 |
| The finish() Method | p. 44 |
| Moving to the Web | p. 46 |
| Creating the Host Document | p. 46 |
| Coding an Applet Stub | p. 47 |
| Declaring Variables and Constructing Colors | p. 50 |
| Making Decisions in Applets | p. 51 |
| Constructing Checkboxes | p. 52 |
| Constructing Applet Components | p. 53 |
| Adding Color, Components, Focus, and Listeners to the Applet | p. 54 |
| Coding the init() Method | p. 56 |
| Compiling and Testing the init() Method | p. 57 |
| Handling Exceptions in the Applet Using try and catch Statements | p. 59 |
| Coding the getSales() Method for the Applet | p. 61 |
| Coding the getCode() Method for the Applet | p. 62 |
| Coding the getComm() Method for the Applet | p. 63 |
| Coding the output() Method for the Applet | p. 65 |
| Coding the paint() Method | p. 66 |
| Compiling and Testing the Applet | p. 67 |
| Chapter Summary | p. 70 |
| What You Should Know | p. 71 |
| Key Terms | p. 72 |
| Homework Assignments | p. 73 |
| Label the Figure | p. 73 |
| Identify Code | p. 73 |
| Understanding Error Messages | p. 75 |
| Short Answer | p. 75 |
| Learn It Online | p. 78 |
| Programming Assignments | p. 79 |
| Multiplication Quiz | p. 79 |
| Using switch and try Statements to Validate User Input | p. 80 |
| Writing User-Defined Methods | p. 82 |
| User Decisions | p. 83 |
| Freddie's Fast Food | p. 84 |
| Traffic Violations | p. 85 |
| Lions, Tigers, and Bears | p. 86 |
| Reasonable Computers Corporation | p. 86 |
| Wright's Garage | p. 86 |
| Overdue Books | p. 86 |
| Stockbroker's Commission | p. 87 |
| Volume Computations | p. 87 |
| What's My Color | p. 88 |
| Formatting Output | p. 88 |
| Flowcharting, Pseudocode, and the Unified Modeling Language (UML) | |
| Guidelines for Preparation of Flowcharts | p. 2 |
| Straight-Line Flowcharts | p. 2 |
| Flowcharts with Looping | p. 2 |
| Control Structures | p. 7 |
| Flowcharting Tips | p. 9 |
| Pseudocode | p. 10 |
| The Unified Modeling Language (UML) | p. 13 |
| Messages and Events | p. 16 |
| Homework Assignments | p. 18 |
| Installing the Java 2 SDK, TextPad, and Tomcat | |
| Installing the Java 2 Software Development Kit (SDK) | p. 2 |
| Installing the Java 2 SDK Standard Edition Documentation | p. 6 |
| Installing TextPad | p. 8 |
| Installing Tomcat | p. 12 |
| Copying Shortcuts for Starting and Stopping Tomcat | p. 15 |
| Adding a New Environment Variable for Tomcat | p. 17 |
| Testing the Tomcat Installation | p. 21 |
| Changing Screen Resolution and Setting TextPad Preferences | |
| Screen Resolution | p. 2 |
| Changing Screen Resolution | p. 2 |
| Setting Preferences in TextPad | p. 6 |
| Starting TextPad and Displaying Preferences | p. 6 |
| Adding the Java Commands to TextPad | p. 8 |
| Turning on Line Numbers | p. 8 |
| Setting Other Preferences | p. 10 |
| TextPad Editing Techniques | p. 11 |
| Compiling and Running Java Programs Using the Command Prompt Window | |
| Using the Command Prompt Window | p. 2 |
| Opening and Setting Properties of the Command Prompt Window | p. 2 |
| Changing Drives and Directories | p. 7 |
| Setting the Path and Classpath Environmental Variables | p. 9 |
| Compiling Source Code and Running Programs at the Command Prompt | p. 11 |
| Creating Documentation with Javadoc | |
| Using the Javadoc Utility | p. 2 |
| Starting TextPad and Opening an Existing File | p. 3 |
| Editing a Class Name and Saving a File with a New File Name | p. 4 |
| Writing Doc Comments | p. 5 |
| Writing Doc Comments for the SampleJavadoc Class | p. 5 |
| Javadoc Tags | p. 6 |
| Writing Doc Comments for the main() Method | p. 7 |
| Coding Doc Comments | p. 8 |
| Generating Documentation Using Javadoc | p. 9 |
| Using the Javadoc Tool | p. 11 |
| Viewing Javadoc-Generated Documentation | p. 13 |
| Index | p. 1 |
| Table of Contents provided by Ingram. All Rights Reserved. |
ISBN: 9780789568311
ISBN-10: 0789568314
Series: Shelly Cashman Series
Published: 1st April 2003
Format: Book with Other Items
Language: English
Number of Pages: 408
Audience: Professional and Scholarly
Publisher: Cengage Learning, Inc
Country of Publication: US
Edition Number: 2
Dimensions (cm): 23.0 x 21.6 x 1.8
Weight (kg): 0.85
Shipping
| Standard Shipping | Express Shipping | |
|---|---|---|
| Metro postcodes: | $9.99 | $14.95 |
| Regional postcodes: | $9.99 | $14.95 |
| Rural postcodes: | $9.99 | $14.95 |
Orders over $89.00 qualify for free shipping.
How to return your order
At Booktopia, we offer hassle-free returns in accordance with our returns policy. If you wish to return an item, please get in touch with Booktopia Customer Care.
Additional postage charges may be applicable.
Defective items
If there is a problem with any of the items received for your order then the Booktopia Customer Care team is ready to assist you.
For more info please visit our Help Centre.
You Can Find This Book In

Architecture Patterns with Python
Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
Paperback
RRP $125.75
$100.60
OFF

Apache Iceberg: The Definitive Guide
Data Lakehouse Functionality, Performance, and Scalability on the Data Lake
Paperback
RRP $133.00
$106.40
OFF






















