1 option
Technical Java : developing scientific and engineering applications / Grant Palmer.
LIBRA QA76.758 .P34 2003
Available from offsite location
- Format:
- Book
- Author/Creator:
- Palmer, Grant.
- Language:
- English
- Subjects (All):
- Software engineering.
- Java (Computer program language).
- Physical Description:
- xxv, 466 pages : illustrations ; 24 cm
- Place of Publication:
- Upper Saddle River, NJ : Prentice Hall, [2003]
- Summary:
- If you want to use Java to develop scientific or engineering programs, Technical Java is the Java guide you've been searching for. Using real-life examples, expert scientific programmer Grant Palmer shows how to build powerful, versatile, and flexible software for virtually any technical application. Whether you're moving from FORTRAN, C, or C ++, or learning Java as your first language
- Contents:
- A Brief History of Java 2
- Installing Java on Your Machine 7
- Compiling and Running Java Programs 8
- Chapter 2 Moving from Fortran to Java 11
- Program Structure 12
- Basic Syntax 13
- Variables 14
- Subroutines, Functions, and Methods 15
- Arrays 16
- Dynamic Memory Allocation 17
- Pointers 17
- Exception Handling 18
- Libraries 18
- Built-in Math Functions 19
- Input/Output Capability 19
- GUIs and Web-Based Applications 20
- Chapter 3 Moving from C to Java 21
- Program Structure 22
- Basic Syntax 23
- Java Classes vs. C Structs 23
- Variables 24
- Pointers 25
- Functions and Methods 25
- Arrays 26
- Dynamic Memory Allocation 27
- Exception Handling 28
- C Libraries and the Java APIs 28
- Strings 29
- Built-in Math Functions 29
- Basic Printing 30
- Input/Output Capability 30
- GUIs and Web-Based Applications 30
- Chapter 4 Moving from C++ to Java 31
- Basic Syntax 32
- Preprocessor Directives 32
- Data Types 33
- Pointers 33
- Structures, Unions, Enumerations 34
- Inheritance and Interfaces 34
- Built-In Math Functions 34
- Standard I/O 35
- Strings 35
- Memory Management 35
- Chapter 5 An Overview of Object-Oriented Programming Concepts 37
- Objects 37
- Classes 38
- Encapsulation 38
- Inheritance 39
- Polymorphism 40
- Chapter 6 Basic Syntax 41
- General Syntax and a Simple Java Program 41
- Operators 44
- Loops and Other Flow of Control Structures 54
- Transfer of Control Statements 60
- Basic Printing and Keyboard I/O 62
- Chapter 7 Classes 65
- Class Declaration Syntax 66
- Access Privileges 67
- Objects 68
- Declaring Fields 69
- Declaring Methods 70
- Constructors 72
- Static Initialization Blocks 74
- Making Copies of Objects 75
- Nested Classes 77
- Encapsulation 81
- Inheritance 82
- The super Keyword 86
- The this Keyword 86
- Abstract Classes 87
- Final Classes 89
- The Garbage Collector 89
- Chapter 8 Variables 91
- Primitive and Reference Type Variables 92
- Instance and Class Variables 95
- Creating Variables 98
- Naming Conventions and Restrictions 101
- Access Modifiers 102
- Accessing Variable Values 103
- Final Variables 105
- Transient and Volatile Variables 106
- Casting 106
- Variable Scope 108
- Chapter 9 Methods 111
- Declaring Methods 112
- Naming Conventions 114
- Access Modifiers 114
- Instance Methods 116
- Static Methods 118
- The main () Method 119
- Input Parameters 121
- Abstract Methods 123
- Final Methods 124
- The native and synchronized Keywords 124
- Method Chaining 124
- Method Overloading 126
- Method Overriding 127
- The return Statement 129
- Chapter 10 Interfaces 131
- Differences Between Interfaces and Abstract Classes 132
- Declaring an Interface 132
- Interface Members 133
- Implementing an Interface 134
- Interfaces and Inheritance 136
- Interface Instances as Input Parameters and Return Types 136
- Chapter 11 Packages and Jar Files 139
- Import Declarations 142
- Classpath Environment Variable 143
- Packages and Access Control 144
- JAR Files 145
- Chapter 12 Exception Handling 149
- The Exception Class Hierarchy 150
- Try Statements 151
- The throw and throws Keywords 155
- Chapter 13 Arrays 159
- One-Dimensional Arrays 160
- Two-Dimensional Arrays 161
- Arrays of More than Two Dimensions 164
- Initializing Array Elements 164
- Accessing Array Elements 166
- Arrays as Method Arguments and Return Types 167
- Array Length 169
- Collection Classes in the Java API 170
- Chapter 14 The Java Class Libraries 173
- Package Naming Conventions 174
- The Core J2SE Libraries 174
- The GUI Libraries 176
- Chapter 15 Primitive Variable Warapper and String Classes 179
- Creating Primitive Variable Wrapper Class Objects 181
- Converting a Wrapper Class Object to a Primitive Value 184
- The parse () Methods 185
- The String Class 186
- Obtaining String Objects 187
- Concatenating Strings 189
- Other Important String Class Methods 190
- Converting Primitive and Reference Types to Strings 193
- Converting Strings to Primitive Values 193
- Chapter 16 Built-in Math Functions 197
- Math and StrictMath Classes 198
- Mathematical Constants 199
- Absolute Value Methods 199
- Power and Square Root Methods 201
- Transcendental Math Functions 203
- Trigonometric Methods 204
- Conversion Methods 206
- Minimum and Maximum Methods 208
- Rounding and Remainder Methods 209
- Random Number Generator Methods 211
- The java.math Package 212
- Comparing the Built-in Math Capability of C, C++, Fortran, and Java 212
- Chapter 17 User-Defined Math Functions 215
- Basic Plan of Attack 216
- The Math2 Class 216
- Logarithm Methods 217
- Hyperbolic Trigonometric Methods 218
- The Gamma Function 219
- The Final Version of the Math2 Class 220
- Compiling the Math2 Class 222
- Using Math2 Class Methods 222
- Comparing Java, C, and Fortran Values 223
- Chapter 18 Building Class Hierarchies 225
- Defining the State and Behavior of a Gas Mixture 226
- The General Class Hierarchy Structure 227
- AbstractGas Class 229
- PerfectGas Class 230
- Air Class 233
- RealGas Class 234
- Species Class 238
- N2 Class 240
- N Class 241
- NitrogenGas Class 242
- Chapter 19 Solving Systems of Equations 247
- The EqnSolver Class 249
- Test Case 249
- Pivoting 250
- Gauss-Jordan Elimination 253
- Gaussian Elimination 255
- Lower-Upper Decomposition 257
- Matrix Inversion 261
- Testing the EqnSolver Class Methods 263
- Real Gas Viscosity Method 265
- Chapter 20 Solving Differential Equations 271
- Ordinary Differential Equations 272
- The ODE Class 273
- Initial Value Problems 275
- Runge-Kutta Schemes 276
- Example Problem: Damped Spring Motion 280
- Embedded Runge-Kutta Solvers 285
- Other ODE Solution Techniques 291
- Two-Point Boundary Problems 292
- Shooting Methods 292
- Example Problem: Compressible Boundary Layer 296
- Other Two-Point Boundary Solution Techniques 305
- Partial Differential Equations 306
- Chapter 21 Integration of Functions 307
- Trapezoidal Algorithms 309
- Simpson's Rule 314
- Solving Improper Integrals 317
- Gaussian Quadrature Methods 322
- General Integral Types 326
- Example: Thin Airfoil Theory 326
- Chapter 22 Fourier Transforms 333
- Discrete Fourier Transform 336
- Analyzing Composite Signals 343
- Sampling Theory 345
- Spectral Leakage 347
- Fast Fourier Transform 349
- Chapter 23 Generic Class Libraries 355
- Analyzing the Problem 356
- Example: Least Squares Fit 356
- Implementing the Generic Part 357
- Implementing the Problem-Specific Part 358
- Testing the Generic Class Library 361
- Chapter 24 Data Modeling and Curve Fits 365
- Least Squares Fit to a Polynomial Equation 366
- The DataModeling Class 368
- The Polynomial Class 369
- Example Problem: Curve Fitting Specific Heat Data 370
- Fitting to Nonpolynomial Equations 373
- The Power Class 374
- Other Data Modeling Techniques 378
- Chapter 25 Java I/O 381
- Byte Input Streams 384
- Byte Output Streams 390
- Character Input Streams 396
- Character Output Streams 400
- Test Case: An Atmosphere Modeling Tool 404
- Getting Input from Command Line Arguments 408
- Using the Standard I/O Streams 410
- Reading and Writing to a File 412
- Saving and Restoring Objects 415
- The java.nio Packages 418
- Chapter 26 An Introduction to Java GUIs 419
- The Java GUI Libraries 420
- The AtmGUI Class 421
- Choosing a Container 422
- Selecting the GUI Components 423
- Adding the Components to the Container 425
- Event Handlers 427
- Other GUI elements 430
- The Final Form of the AtmGUI class 430
- Chapter 27 Creating Web-Based Applications Using Java Servlets 435
- Web-Based Application Basics 436
- Java Servlets 437
- Required Libraries and Tools 438
- Example: A Web-Based Atmosphere Modeling Tool 438
- HttpServlet Class 439
- General Form of an HttpServlet Subclass 440
- Extracting Input Parameters 441
- Running Server-Based Applications 442
- Sending Output Back to the Client Machine 443
- The AtmServlet Class 443
- Deploying the Web-Based Application 447.
- Notes:
- Includes bibliographical references and index.
- Local Notes:
- Acquired for the Penn Libraries with assistance from the Sabin W. Colton, Jr., Memorial Fund.
- ISBN:
- 0131018159
- OCLC:
- 52380161
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.