Saturday, July 17, 2010

JAVA Programming for Engineers














Table of Contents
Preface
Part I - Java Language Fundamentals
Chapter 1 - Java Programming
Introducing Java
The Portability Issue
Java as a programming language
Java is object-oriented
Java is strongly-typed
Java is similar to C++
Java uses libraries
Java is an interpreted language
Java Code
Communicating with an alien intelligence
Flowcharting
Chapter 2 - Your First Java Program
Installing the JDK
Selecting an Editor
The HelloJava Program
Java language rules
The program header
The HelloJava code
Creating the HelloJava Program
Chapter 3 - How Computers Store Information
Storing Text and Numbers
Number Systems
Binary numbers
Hex numbers
Computer memory
Character data
Chapter 4 - Storing and Naming Data
A Data-Processing Machine
What is Computer Data?
Identifiers
Creating and using variables and constants
Java variable types
Declaring a variable
Java strings
Java constants
Classification of Java Data
Numeric data
Character data
Boolean data
Type Conversions
Implicit conversions
Type-casting
Declaring literals
Chapter 5 - Performing Input and Output
Input and Output
Data Input
Data Output
Escape characters
A Sample Program
Chapter 6 - Introducing Arrays
A New Data Type
Java Arrays
Creating an array
The array brackets
Accessing array elements
The size of an array
Multi-dimensional arrays
Ragged arrays
Initializing multi-dimensional arrays
Chapter 7 - Java Operators
The Action Element
Operators
Operator action
The Assignment Operator
The two sides of an assignment
Arithmetic Operators
The remainder operator
Concatenation
Increment and Decrement
Relational Operators
Chapter 8 - Other Java Operators
Logical Operations
Manipulating bits
The & operator
The | operator
The ^ operator
The ~ operator
The <, >, and >> operators
The compound assignment operators
Operator hierarchy
Associativity rules
Chapter 9 - Directing Program Flow
Simple Decisions
Java Decisions Constructs
The if construct
Statement blocks
The nested if
The else construct
The dangling else
Else-if clause
The switch construct
Conditional Expressions
Chapter 10 - Controlling Program Flow
Repetition in Programs
Loops and iterations
Elements of a program loop
For Loop
Compound statement in loops
While loop
Do-While Loop
Chapter 11- Programming with Loops
Java Loop Constructs
Selecting a Loop Construct
Direct Flow Control
Using break in loops
The continue keyword
The labeled break
Chapter 12 - Program Building Blocks
The Java Subprogram
Modules and Methods
The Elements of a Method
Declaration
Access specifier
Modifier
Return type
Method name
Parameter list
Chapter 13 - Using Methods
The Method Call
Returning from a Method
Arguments and Parameters
Methods and Global Variables
Passing by Value and by Reference
Chapter 14 - Object-Oriented Programming
Classes and Objects
The Why and Wherefore of OO
Object-Oriented Fundamentals
From Problem to Solution
Learning about Classes and Objects
The fundamental principles
Encapsulation
Inheritance
Modeling with Classes
Polymorphism and Abstract Classes
A classification example
Chapter 15 - Object-Oriented Coding
Working with Classes and Objects
Thinking Objects
Object instantiation
Field variables and method variables
Object variables and class variables
Building Objects
The default constructor
Overloading the constructor
Chapter 16 - Using Inheritance
Inheritance and Data Abstraction
Java Inheritance
Extending class functionality
Polymorphism
Modeling with inheritance
Abstraction and Inheritance
Programming with abstract classes
Chapter 17 - Object Composition
An Alternative to Inheritance
Inheritance Drawbacks
Reusing Class Functionality
The new mind set
Thinking object composition
Aggregation
Objects as Parameters
Acquaintance Associations
Combining Inheritance and Composition
Arrays of objects
Dynamic Binding
Chapter 18 - I/O Programming
Java Input and Output
Obtaining and Transmitting Data
Character data
java.io Package
Streams
Java InputStream class
Java OutputStream class
Standard Streams
The Keyin Class
Flushing the input stream
Obtaining character data
Obtaining numeric data
Chapter 19 - Handling Errors
Program Errors
Error Types
Hardware and software errors
Algorithmic errors
Exceptions
Bullt-in exception handling
Java's approach
Java exception classes
Advertising exceptions
Exceptions Programming
Java exception processing
Raising exceptions
Handling exceptions
Throwing exceptions
Part II - Java Programming for Engineers
Chapter 20 - Computer Number Systems
The Hindu-Arabic Numerals
Computer Number Systems
Radix or base
Types of Numbers
Whole numbers
Signed numbers
Rational and irational numbers
Real and complex numbers
Storage of Numerical Data
Computer word size
Representing Integers
Sign-magnitude integers
Radix-complement integers
Diminished-radix integers
Representing Fractional Numbers
Fixed-point representations
Floating-point representations
Standardized floating-point formats
Binary-Coded Decimals (BCD)
Floating-point BCD
Chapter 21- Fixed-Precision Numeric Data
Java Numeric Data Types
Primitive Data Types
IEEE 754 Standard
Numeric Data Encoding
Rounding
Interval arithmetic
Treatment of infinity
Not a number (NaN)
Signaling and quiet NaNs
Exceptions
Invalid operation exception
Division by zero exception
Overflow exception
Underflow exception
Inexact result exception
IEEE 754 in Java
java.lang Class Double
MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
public static boolean isInfinite(double v)
public boolean isInfinite()
public static boolean isNaN(double v)
public boolean isNaN()
java.lang Class Float
MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
public static boolean isInfinite(float v)
public boolean isInfinite()
public static boolean isNaN(float v)
public boolean isNaN()
Java Numeric Truncation
public static double ceil(double a)
public static double floor(double a)
public static double rint(double a)
public static long round(double a)
public static int round(float a)
Chapter 22 - Variable-Precision Numeric Data
High-Precision Arithmetic
BigDecimal Numbers
BigDecimal constructors
BigDecimal(BigInteger val)
BigDecimal(BigInteger unscaledVal, int scale)
BigDecimal(double val)
BigDecimal(String val)
Using the BigDecimal constructors
BigDecimal scale operations
SetScale() method
Scale() method
BigDecimal point operations
BigDecimal comparisons and conversions
public boolean equals(Object x)
public int compareTo(BigDecimal val)
public double doubleValue()
public float floatValue()
public int intValue()
public long longValue()
public BigInteger toBigInteger()
public static BigDecimal valueOf(long unscaledVal, int scale)
public static BigDecimal valueOf(long val)
public String toString()
public int hashCode()
BigDecimal rounding controls
BigDecimal Arithmetic
A sample program
The BigInteger Class
BigInteger numbers
BigInteger constructors
BigInteger(byte[] val)
BigInteger(int signum, byte[] magnitude)
BigInteger(int bitLength, int certainty, Randomrnd)
BigInteger(int numBits, Random rnd)
BigInteger(String val)
BigInteger(String val, int rdix)
BigInteger methods
A sample program
Chapter 23 - Fundamental Operations
Calculator Operations
Java Floating-Point Math
Strict and non-strict math
Java Basic Arithmetic
Numeric constants
public static final double E
public static final double PI
Absolute value
public static int abs(int a)
public static long abs(long a)
public static float abs(float a)
public static double abs(double a)
Maximum and minimum
public static operand max(operand a, operand b)
public static operand min(operand a, operand b)
Rounding controls
public static double ceil(double a)
public static double floor(double a)
public static double rint(double a)
public static int round(float a)
public static long round(double a)
IEEE-style remainder
public static double IEEEremainder(double f1, double f2)
Exponential Function
public static double pow(double a, double b)
public static double sqrt(double a)
public static double exp(double a)
Trigonometric Functions
Calculating trigonometric functions
Hyperbolic functions and arc-functions
Cartesian and polar coordinates
Logarithmic Functions
Calculating antilogarithms
Random Numbers
Producing pseudo-random numbers
public static double random()
Chapter 24 - Java Math for Engineers
Java Numerical Primitives
Factorial
Evaluating Numeric Results
Floating-point errors
Comparing Floating-Point Numbers
Comparisons in IEEE 754
Weighted comparisons
Bit-by-Bit operations
public static long doubleToLongBits(double value)
public static long doubleToRawLongBits(double value)
public static double longBitsToDouble(long bits)
Conversion Operations
Integer and fractional parts
Solving Triangles
Pythagoras’ theorem
Side-angle problems
Solving Quadratic equations
Chapter 25 - Introducing Computer Graphics
Developing Graphical Application
Origin of Computer Graphics
Text-based and graphical systems
Event-Driven Programming
Event manager and event handler
The Main Window
Controls
Chapter 26 - Java Graphics
The Greatest Challenge
Applets and applications
The Java Foundation Classes
AWT
Swing
Java 2D
The Frame Concept
AWT frame class
Window class
Container class
The Java Graphics Application
The ActiveFrame class
The Display Context
The update() and paint() methods
Manipulating fonts
Chapter 27 - Displaying Graphic Images
Vector and Raster Graphics
The frame origin
Color and Java graphics
RGB color designation
The Java Graphics Class
Vector-Based Drawing
Transformations
Raster Graphics
The image object
Displaying the bitmap

Download
Another Java books
Another Programming Language books

No comments:

Post a Comment

Related Posts with Thumbnails

Put Your Ads Here!