Java Programming
  1. Learning It Inside/Out
    We will learn by working within existing designs, coding transformations from inputs to results using Java.
  2. Karel The Robot
    We start by instructing Karel, a robot that can carry out our commands. By watching him follow our instructions, the meanings of our programs can be visualized.
  3. Variables, Assignment, and Sequential Flow
    A variable takes on just one value at a time, its value may be set by an assignment statement. After a variable's value is set, the variable's value may be used in a computation.
  4. If/Else Selection
    Sometimes what you need to do depends on the current circumstances. In that case we need to use the if/else statement to select an alternative.
  5. Using Expressions to Specify Computation
    Expressions are as close to automatic as Java gets!
  6. Counted repetition of actions
    The for statement
  7. Multiple values per variable name
    The array
  8. Choosing among more than two selections
    Extending if with the "else if" cascade, and the switch statement
  9. Working with letters and words
    The char and String types
  10. Conditional repetition of actions
    The while statement
  11. Final Projects

Index of Exercises and Projects