Java 9 recipes a problem-solution approach

Quickly find solutions to dozens of common programming problems encountered while building Java applications. Content is presented in the popular problem-solution format. Look up the programming problem that you want to resolve. Read the solution. Apply the solution directly in your own code. Proble...

Full description

Bibliographic Details
Main Author: Juneau, Josh
Format: eBook
Language:English
Published: California, New York, NY Apress, Distributed to the Book trade worldwide by Springer Science+Business Media 2017
Edition:Third edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Getting Started with Java 9; 1-1. Creating a Development Environment; Problem; Solution; How It Works; 1-2. Getting to "Hello, World"; Problem; Solution; How It Works; Packages; JavaBeans-Style Classes; The Main Program; 1-3. Configuring the CLASSPATH; Problem; Solution; How It Works; 1-4. Organizing Code with Packages; Problem; Solution; How It Works; 1-5. Declaring Variables and Access Modifiers; Problem; Solution; How It Works
  • Includes bibliographical references and index
  • How It Works2-7. Redirecting Platform Logs; Problem; Solution; How It Works; 2-8. Utilizing Factory Methods to Create Immutable Collections; Problem; Solution; How It Works; Summary; Chapter 3: Strings; Compact Strings: Java 9 String Enhancements; 3-1. Obtaining a Subsection of a String; Problem; Solution; How It Works; 3-2. Comparing Strings; Problem; Solution; How It Works; 3-3. Trimming Whitespace; Problem; Solution; How It Works; 3-4. Changing the Case of a String; Problem; Solution; How It Works; 3-5. Concatenating Strings; Problem; Solution 1; Solution 2; Solution 3; How It Works
  • 1-6. Compiling and Executing from the Command-Line or Terminal InterpreterProblem; Solution; How It Works; 1-7. Developing Within the Interactive jShell; Problem; Solution; How It Works; 1-8. Converting to and from a String; Problem; Solution; How It Works; 1-9. Passing Arguments via Command-Line Execution; Problem; Solution; How It Works; 1-10. Executing a Script via the jShell; Problem; Solution; How It Works; 1-11. Accepting Input from the Keyboard; Problem; Solution; How It Works; 1-12. Documenting Your Code; Problem; Solution; How It Works; Formatting the Documentation
  • 3-6. Converting Strings to Numeric ValuesProblem; Solution 1; Solution 2; How It Works; 3-7. Iterating Over the Characters of a String; Problem; Solution; How It Works; 3-8. Finding Text Matches; Problem; Solution 1; Solution 2; How It Works; 3-9. Replacing All Text Matches; Problem; Solution; How It Works; 3-10. Determining Whether a File Suffix Matches a Given String; Problem; Solution; How It Works; 3-11. Making a String That Can Contain Dynamic Information; Problem; Solution 1; Solution 2; How It Works; Summary; Chapter 4: Numbers and Dates
  • Executing the Tool1-13. Reading Environment Variables; Problem; Solution; How It Works; Summary; Chapter 2: Java 9 Enhancements; 2-1. Avoiding Redundancy in Interface Code; Problem; Solution; How It Works; 2-2. Creating Modules for Simplifying and Code Reuse; Problem; Solution; How It Works; 2-3. Easily Retrieving Information on OS Processes; Problem; Solution; How It Works; 2-4. Handling Errors with Ease; Problem; Solution; How It Works; 2-5. Filtering Data Before and After a Condition with Streams; Problem; Solution; How It Works; 2-6. Developing a Concise HTTP Client; Problem; Solution