408 Pages · 5.87 mb ·
Programming
- Beginning Programming with Java For Dummies (Page 1) - About the Author (Page 5) - Dedication (Page 7) - Author’s Acknowledgments (Page 7) - Contents at a Glance (Page 9) - Table of Contents (Page 11) - Introduction (Page 19) - How to Use This Book (Page 19) - Conventions Used in This Book (Page 20) - What You Don’t Have to Read (Page 20) - Foolish Assumptions (Page 21) - How This Book Is Organized (Page 22) - Icons Used in This Book (Page 23) - Where to Go from Here (Page 24) - Part I Revving Up (Page 25) - Getting Started (Page 27) - What’s It All About? (Page 27) - From Your Mind to the Computer’s Processor (Page 30) - Your Java Programming Toolset (Page 37) - Setting Up Your Computer (Page 41) - Downloading and Installing the Software You Need (Page 42) - Running JCreator for the First Time (Page 47) - Is That All There Is to It? (Page 49) - Running Programs (Page 51) - Running a Canned Java Program (Page 51) - Typing and Running Your Own Code (Page 56) - Part II Writing Your Own Java Programs (Page 63) - Exploring the Parts of a Program (Page 65) - Checking Out Java Code for the First Time (Page 65) - The Elements in a Java Program (Page 67) - Understanding a Simple Java Program (Page 75) - Composing a Program (Page 83) - A Program to Echo Keyboard Input (Page 84) - Expecting the Unexpected (Page 92) - Using the Building Blocks: Variables, Values, and Types (Page 107) - Using Variables (Page 107) - What Do All Those Zeros and Ones Mean? (Page 112) - Reading Decimal Numbers from the Keyboard (Page 114) - Variations on a Theme (Page 117) - Numbers and Types (Page 121) - Using Whole Numbers (Page 121) - Creating New Values by Applying Operators (Page 126) - Size Matters (Page 136) - Numbers? Who Needs Numbers? (Page 139) - Characters (Page 140) - The boolean Type (Page 149) - The Remaining Primitive Types (Page 156) - Part III Controlling the Flow (Page 157) - Forks in the Road (Page 159) - Making Decisions (Java if Statements) (Page 161) - Variations on the Theme (Page 168) - Which Way Did He Go? (Page 175) - Forming Bigger and Better Conditions (Page 175) - Building a Nest (Page 188) - Enumerating the Possibilities (Page 193) - How to Flick a Virtual Switch (Page 199) - Meet the switch Statement (Page 199) - Using Fall-through to Your Advantage (Page 208) - Using a Conditional Operator (Page 210) - Around and Around It Goes (Page 213) - Repeating Instructions Over and Over Again (Java while Statements) (Page 214) - Thinking about Loops (What Statements Go Where) (Page 218) - Thinking About Loops (Priming) (Page 225) - Piles of Files: Dealing with Information Overload (Page 233) - Running a Disk-Oriented Program (Page 234) - Writing a Disk-Oriented Program (Page 243) - Writing, Rewriting, and Re-rewriting (Page 247) - Creating Loops within Loops (Page 250) - Paying Your Old Code a Little Visit (Page 251) - Creating Useful Code (Page 253) - The Old Runaround (Page 262) - Repeating Statements a Certain Number Times (Java for Statements) (Page 263) - Repeating Until You Get What You Need (Java do Statements) (Page 270) - Repeating with Predetermined Values (Java’s Enhanced for Statement) (Page 276) - Part IV Using Program Units (Page 285) - Using Loops and Arrays (Page 287) - Some for Loops in Action (Page 287) - Reader, Meet Arrays; Arrays, (Page 293) - Meet the Reader (Page 293) - Working with Arrays (Page 299) - Programming with Objects and Classes (Page 305) - Creating a Class (Page 306) - From Classes Come Objects (Page 310) - Another Way to Think (Page 316) - About Classes (Page 316) - Using Methods and Variables from a Java Class (Page 319) - The String Class (Page 319) - Using an Object’s Methods (Page 323) - Static Methods (Page 329) - Understanding the Big Picture (Page 334) - Creating New Java Methods (Page 341) - Defining a Method within a Class (Page 341) - Let the Objects Do the Work (Page 350) - Passing Values to Methods (Page 352) - Getting a Value from a Method (Page 357) - Oooey GUI Was a Worm (Page 363) - The Java Swing Classes (Page 364) - Keeping the User Busy (Working (Page 368) - with Buttons and Text Fields) (Page 368) - Taking Action (Page 371) - Part V The Part of Tens (Page 375) - Ten Sets of Web Links (Page 377) - The Horse’s Mouth (Page 377) - Finding News, Reviews, and Sample Code (Page 378) - Improving Your Code with Tutorials (Page 378) - Finding Help on Newsgroups (Page 378) - Reading Documentation with (Page 379) - Additional Commentary (Page 379) - Checking the FAQs for Useful Info (Page 379) - Opinions and Advocacy (Page 379) - Looking for Java Jobs (Page 380) - Finding Out More about Other (Page 380) - Programming Languages (Page 380) - Everyone’s Favorite Sites (Page 381) - Ten Useful Classes in the Java API (Page 383) - Applet (Page 383) - ArrayList (Page 384) - File (Page 384) - Integer (Page 384) - Math (Page 385) - NumberFormat (Page 385) - Scanner (Page 385) - String (Page 385) - StringTokenizer (Page 386) - System (Page 386) - Index (Page 387)