Java cookbook

You have a choice: you can wade your way through lengthy Java tutorials and figure things out by trial and error, or you can pick up Java Cookbook, 2nd Edition and get to the heart of what you need to know when you need to know it. With the completely revised and thoroughly updated Java Cookbook, 2n...

Full description

Bibliographic Details
Main Author: Darwin, Ian F.
Format: eBook
Language:English
Published: Sebastopol, CA O'Reilly 2004
Edition:2nd ed
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • 2.0 Introduction2.1 Getting Environment Variables; Problem; Solution; Discussion; 1.4 and earlier; Back to the future: 1.5; 2.2 System Properties; Problem; Solution; Discussion; See Also; 2.3 Writing JDK Release-Dependent Code; Problem; Solution; Discussion; 2.4 Writing Operating System-Dependent Code; Problem; Solution; Discussion; 2.5 Using Extensions or Other Packaged APIs; Problem; Solution; Discussion; 2.6 Parsing Command-Line Arguments; Problem; Solution; Discussion; See Also; Strings and Things; 3.0 Introduction; 3.1 Taking Strings Apart with Substrings; Problem; Solution; Discussion
  • 1.10 Conditional Debugging Without #ifdefProblem; Solution; Discussion; Conditional compilation?; See Also; 1.11 Debugging Printouts; Problem; Solution; Discussion; See Also; 1.12 Maintaining Program Correctness with Assertions; Problem; Solution; Discussion; 1.13 Debugging with JDB; Problem; Solution; Discussion; 1.14 Unit Testing: Avoid the Need forDebuggers; Problem; Solution; Discussion; See Also; 1.15 Getting Readable Tracebacks; Problem; Solution; Discussion; 1.16 Finding More Java Source Code; Problem; Solution; Discussion; 1.17 Program: Debug; Interacting with the Environment
  • Table of Contents; Preface; Preface to the Second Edition; Preface to the First Edition; Who This Book Is For; What's in This Book?; Platform Notes; Other Books; Other Java Books; General Programming Books; Design Books; Conventions Used in This Book; Programming Conventions; Typesetting Conventions; Comments and Questions; Getting the Source Code; Acknowledgments; Getting Started: Compiling, Running, and Debugging; 1.0 Introduction; 1.1 Compiling and Running Java: JDK; Problem; Solution; JDK; Command-line alternatives; Mac OS X; 1.2 Editing and Compiling with a Color-Highlighting Editor
  • 3.2 Taking Strings Apart with StringTokenizerProblem; Solution; See Also; 3.3 Putting Strings Together with +, StringBuilder (JDK 1.5), and StringBuffer; Problem; Solution; Discussion; 3.4 Processing a String One Character at a Time; Problem; Solution; Discussion; 3.5 Aligning Strings; Problem; Solution; Discussion; See Also; 3.6 Converting Between Unicode Characters and Strings; Problem; Solution; See Also; 3.7 Reversing a String by Word or by Character; Problem; Solution; Discussion; 3.8 Expanding and Compressing Tabs; Problem; Solution; Discussion; 3.9 Controlling Case; Problem; Solution
  • ProblemSolution; Discussion; 1.3 Compiling, Running, and Testing with an IDE; Problem; Solution; Discussion; See Also; 1.4 Using CLASSPATH Effectively; Problem; Solution; Discussion; 1.5 Using the com.darwinsys API Classes from This Book; Problem; Solution; Discussion; 1.6 Compiling the Source Code Examples from This Book; Problem; Solution; Discussion; A caveat; 1.7 Automating Compilation with Ant; Problem; Solution; Discussion; See Also; 1.8 Running Applets; Problem; Solution; Discussion; See Also; 1.9 Dealing with Deprecation Warnings; Problem; Solution; Discussion