Beginning Programming with Java® For Dummies®, 3rd Edition

Book description

One of the most popular beginning programming books, now fully updated

Java is a popular language for beginning programmers, and earlier editions of this fun and friendly guide have helped thousands get started. Now fully revised to cover recent updates for Java 7.0, Beginning Programming with Java For Dummies, 3rd Edition is certain to put more first-time programmers and Java beginners on the road to Java mastery.

  • Explores what goes into creating a program, putting the pieces together, dealing with standard programming challenges, debugging, and making the program work

  • Offers new options for tools and techniques used in Java development

  • Provides valuable information and examples for the would-be programmer with no Java experience

  • All examples are updated to reflect the latest changes in Java 7.0

Beginning Programming with Java For Dummies, 3rd Edition offers an easy-to-understand introduction to programming through the popular, versatile Java 7.0 language.

Table of contents

  1. Cover
  2. Table of Contents
  3. Title Page
  4. Introduction
  5. Part I: Revving Up
    1. Chapter 1: Getting Started
      1. What’s It All About?
      2. From Your Mind to the Computer’s Processor
      3. Your Java Programming Toolset
    2. Chapter 2: Setting Up Your Computer
      1. If You Don’t Like Reading Instructions . . .
      2. Getting This Book’s Sample Programs
      3. Setting Up Java
      4. Setting Up the Eclipse Integrated Development Environment
      5. What’s Next?
    3. Chapter 3: Running Programs
      1. Running a Canned Java Program
      2. Typing and Running Your Own Code
      3. What’s All That Stuff in Eclipse’s Window?
  6. Part II: Writing Your Own Java Programs
    1. Chapter 4: Exploring the Parts of a Program
      1. Checking Out Java Code for the First Time
      2. The Elements in a Java Program
      3. Understanding a Simple Java Program
    2. Chapter 5: Composing a Program
      1. Computers Are Stupid
      2. A Program to Echo Keyboard Input
      3. Expecting the Unexpected
    3. Chapter 6: Using the Building Blocks: Variables, Values, and Types
      1. Using Variables
      2. What Do All Those Zeros and Ones Mean?
      3. Reading Decimal Numbers from the Keyboard
      4. Variations on a Theme
    4. Chapter 7: Numbers and Types
      1. Using Whole Numbers
      2. Creating New Values by Applying Operators
      3. Size Matters
    5. Chapter 8: Numbers? Who Needs Numbers?
      1. Characters
      2. The boolean Type
      3. The Remaining Primitive Types
  7. Part III: Controlling the Flow
    1. Chapter 9: Forks in the Road
      1. Decisions, Decisions!
      2. Making Decisions (Java if Statements)
      3. Variations on the Theme
    2. Chapter 10: Which Way Did He Go?
      1. Forming Bigger and Better Conditions
      2. Building a Nest
      3. Enumerating the Possibilities
    3. Chapter 11: How to Flick a Virtual Switch
      1. Meet the Switch Statement
      2. Using Fall-Through to Your Advantage
      3. Using a Conditional Operator
    4. Chapter 12: Around and Around It Goes
      1. Repeating Instructions Over and Over Again (Java while Statements)
      2. Thinking about Loops (What Statements Go Where)
      3. Thinking about Loops (Priming)
    5. Chapter 13: Piles of Files: Dealing with Information Overload
      1. Running a Disk-Oriented Program
      2. Writing a Disk-Oriented Program
      3. Writing, Rewriting, and Re-rewriting
    6. Chapter 14: Creating Loops within Loops
      1. Paying Your Old Code a Little Visit
      2. Creating Useful Code
    7. Chapter 15: The Old Runaround
      1. Repeating Statements a Certain Number Times (Java for Statements)
      2. Using Nested for Loops
      3. Repeating Until You Get What You Need (Java do Statements)
      4. Repeating with Predetermined Values (Java’s Enhanced for Statement)
  8. Part IV: Using Program Units
    1. Chapter 16: Using Loops and Arrays
      1. Some Loops in Action
      2. Reader, Meet Arrays; Arrays, Meet the Reader
      3. Working with Arrays
      4. Looping in Style
    2. Chapter 17: Programming with Objects and Classes
      1. Creating a Class
      2. From Classes Come Objects
      3. Another Way to Think about Classes
    3. Chapter 18: Using Methods and Variables from a Java Class
      1. The String Class
      2. Using an Object’s Methods
      3. Static Methods
      4. Understanding the Big Picture
    4. Chapter 19: Creating New Java Methods
      1. Defining a Method within a Class
      2. Let the Objects Do the Work
      3. Passing Values to Methods
      4. Getting a Value from a Method
    5. Chapter 20: Oooey GUI Was a Worm
      1. The Java Swing Classes
      2. Using Eclipse’s WindowBuilder
      3. Adding Stuff to Your Frame
      4. Taking Action
  9. Part V: The Part of Tens
    1. Chapter 21: Ten Sets of Web Links
      1. The Horse’s Mouth
      2. Finding News, Reviews, and Sample Code
      3. Improving Your Code with Tutorials
      4. Finding Help on Newsgroups
      5. Reading Documentation with Commentary
      6. Listen!
      7. Opinions and Advocacy
      8. Looking for Java Jobs
      9. Finding Out More about Other Programming Languages
      10. Everyone’s Favorite Sites
    2. Chapter 22: Ten Useful Classes in the Java API
      1. Applet
      2. ArrayList
      3. File
      4. Integer
      5. Math
      6. NumberFormat
      7. Scanner
      8. String
      9. StringTokenizer
      10. System
  10. Cheat Sheet

Product information

  • Title: Beginning Programming with Java® For Dummies®, 3rd Edition
  • Author(s):
  • Release date: April 2012
  • Publisher(s): For Dummies
  • ISBN: 9780470371749