Java 7 Recipes [electronic resource] : A Problem-Solution Approach /
Juneau, Josh.author.
Beaty, Mark.author.
Dea, Carl.author.
Guime, Freddy.author.
OConner, John.author.
Java 7 Recipes offers solutions to common programming problems encountered every day while developing Java-based applications. Fully updated with the newest features and techniques available, Java 7 Recipes provides code examples involving Servlets, Java FX 2.0, XML, Java Swing, and much more. Content is presented in the popular problem-solution format: Look up the programming problem that you want to solve. Read the solution. Apply the solution directly in your own code. Problem solved! The problem-solution approach sets Java 7 Recipes apart from other books on the topic. Java 7 Recipes is focused less on the language itself and more on what you can do with it that is useful. The book respects your time by always focusing on a task that you might want to perform using the language. Solutions come first. Explanations come later. You are free to crib from the book and apply the code examples directly to your own projects. Covers all-new release of Java: Java 7 Focuses especially on up-and-coming technologies such as Java FX 2.0 Respects your time by focusing on practical solutions you can implement in your own code.
Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Authors; About the Technical Reviewers; Acknowledgments; Introduction; Who This Book Is For; How This Book Is Structured; CHAPTER 1 Getting Started with Java 7; 1-1. Downloading and Installing Java 7; Problem; Solution; How It Works; 1-2. Configuring the CLASSPATH; Problem; Solution; How It Works; 1-3. Writing an Executable Java Class; Problem; Solution; How It Works; 1-4. Compiling and Executing Java Class; Problem; Solution; How It Works; 1-5. Printing Output; Problem; Solution; How It Works
1-6. Passing Arguments via the Command LineProblem; Solution; How It Works; 1-7. Obtaining and Setting Environment Variable Values; Problem; Solution; How It Works; 1-8. Documenting Code with Javadoc; Problem; Solution; How It Works; 1-9. Marking Features as Deprecated; Problem; Solution; How It Works; 1-10. Creating Methods in a Class; Problem; Solution; How It Works; 1-11. Passing Arguments to Methods and Returning Values; Problem; Solution; How It Works; 1-12. Organizing Code with Packages; Problem; Solution; How It Works; 1-13. Accepting Keyboard Input from the Command Line; Problem
SolutionHow It Works; CHAPTER 2 Strings; 2-1. Obtaining a Subsection of a String; Problem; Solution; How It Works; 2-2. Comparing Strings; Problem; Solution; How It Works; 2-3. Trimming Whitespace; Problem; Solution; How It Works; 2-4. Changing the Case of a String; Problem; Solution; How It Works; 2-5. Concatenating Strings; Problem; Solution #1; Solution #2; Solution #3; How It Works; 2-6. Converting Strings to Numeric Values; Problem; Solution #1; Solution #2; How It Works; 2-7. Iterating Over the Characters of a String; Problem; Solution; How It Works; 2-8. Finding Text Matches; Problem
Solution #1Solution #2; How It Works; 2-9. Replacing All Text Matches; Problem; Solution; How It Works; 2-10. Determining Whether a File Name Ends with a Given String; Problem; Solution; How It Works; CHAPTER 3 Numbers and Dates; 3-1. Rounding Float and Double Values to Integers; Problem; Solution; How It Works; 3-2. Formatting Double and Long Decimal Values; Problem; Solution; How It Works; 3-3. Comparing int Values; Problem; Solution #1; Solution #2; How It Works; 3-4. Comparing Floating-Point Numbers; Problem; Solution #1; Solution #2; How It Works
3-5. Performing Calculations with Complex NumbersProblem; Solution; How It Works; 3-6. Formatting and Parsing Complex Numbers; Problem; Solution; How It Works; 3-7. Calculating Monetary Values; Problem; Solution; How It Works; 3-8. Randomly Generating Values; Problem; Solution #1; Solution #2; How It Works; 3-9. Obtaining the Current Date; Problem; Solution #1; Solution #2; How It Works; 3-10. Adding and Subtracting Days, Months, and Years; Problem; Solution; How It Works; 3-11. Finding the Difference Between Two Dates; Problem; Solution; How It Works; 3-12. Formatting Dates for Display
Problem
Includes index.
Includes index.
Java 7 Recipes offers solutions to common programming problems encountered every day while developing Java-based applications. Fully updated with the newest features and techniques available, Java 7 Recipes provides code examples involving Servlets, Java FX 2.0, XML, Java Swing, and much more. Content is presented in the popular problem-solution format: Look up the programming problem that you want to solve. Read the solution. Apply the solution directly in your own code. Problem solved! The problem-solution approach sets Java 7 Recipes apart from other books on the topic. Java 7 Recipes is focused less on the language itself and more on what you can do with it that is useful. The book respects your time by always focusing on a task that you might want to perform using the language. Solutions come first. Explanations come later. You are free to crib from the book and apply the code examples directly to your own projects. Covers all-new release of Java: Java 7 Focuses especially on up-and-coming technologies such as Java FX 2.0 Respects your time by focusing on practical solutions you can implement in your own code.
Java (Computer program language).
Software engineering.
Java.
Software Engineering/Programming and Operating Systems.