Java for Everyone

Programmers, computer scientists, and engineers need a book that delivers the essentials of how to program using Java in a more accessible, less rigorous approach. Java for Everyone provides them with a more user-friendly, graphics-intensive design that conveys complex concepts simply and effectively. It differs from other books in the market by focusing on topics such as loops and graphical interfaces, while avoiding a focus on object-orientation. The emphasis is placed on simple programs that use pre-built data structures and algorithms whenever possible. The examples and case studies explore practical applications that programmers, computer scientists, and engineers will find useful, such as processing tabular data, harvesting Web information, creating custom graphics, and building simple user interfaces.

Table of Contents

1. Introduction

• Computer Programs

• Anatomy of a Computer

• The Java Programming Language

• Becoming Familiar with Your Programming Environment

• Analyzing Your First Program

• Errors

• Algorithms

2. Fundamental Data Types

• Defining Variables

• Modifying Variables

• Constants

• Reading Input

• Arithmetic

• Strings

3. Decisions

• The if Statement

• Comparing Numbers and Strings

• Multiple Alternatives

• Nested Branches

• Boolean Variables and Operators

• Application: Input Validation

4. Loops

• The while Loop

• The for Loop

• The do Loop

• Application: Processing Sentinel Values

• Common Loop Algorithms

• Nested Loops

• Application: Random Numbers and Simulations

5. Methods

• Methods as Black Boxes

• Implementing Methods

• Parameter Passing

• Return Values

• Methods Without Return Values

• Stepwise Refinement

• Variable Scope and Static Variables

• Recursive methods (Optional)

6. Arrays and Array Lists

• Using Arrays and Array Lists

• The Enhanced for Loop

• Common Array and Array List Algorithms

• Using Arrays and Array Lists with Methods

• Two-dimensional Arrays

Proposal: Java for Everyone, First Edition 5/18/09: 9

7. Objects and Classes

• Designing the public interface

• Fields and methods

• Constructors

• Discovering classes

• Static fields and methods

• Packages

8. Processing Data Files and Web Information

• Streams, readers and writers

• Reading files and web pages

• Exception handling

9. Inheritance

• Inheritance hierarchies

• Forming subclasses

• Polymorphism

• Subclass construction

• Interface type

10. Common Data Structures and Algorithms

• Lists and maps

• Sorting and searching

• Other standard algorithms

11. Recursion (Web only)

• Organizing database information

• SQL queries

• Programming with JDBC

12. Building Graphical User Interfaces (Web only)

• Event handling

• Buttons and menus

• Layout management

• Text fields and text areas

Sign up now to get free exclusive access to reports, research and invitation only events.
Featured Download
/downloads/product/205/divx-plus/

DivX Plus

Divx Plus 8 provides you with a Web Player which allows you to watch DivX, AVI and MKV videos in your web brower; you can ...

Computerworld newsletter

Join the most dedicated community for IT managers, leaders and professionals in Australia