|
Java Programming
-
Learning It
Inside/Out
We will learn by working within existing designs, coding transformations
from inputs to results using Java.
-
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.
-
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.
-
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.
-
Using Expressions
to Specify Computation
Expressions are as close to automatic as Java gets!
-
Counted repetition of
actions
The for statement
-
Multiple values per variable
name
The array
-
Choosing among more
than two selections
Extending if with the "else
if" cascade, and the switch statement
-
Working with letters and
words
The char and String types
-
Conditional repetition of
actions
The while statement
-
Final Projects
Index of Exercises and Projects |