Chapter 1
- Definitions
- Java development
- The program javac
- The program java
- Compiling and running Java.
- Format of a .java file (class, main etc)
- Line and block comments.
- Output with print, println.
- Special characters \n, \t, \\, \" (Table 4.5 p. 128).
|
Chapter 2
- Definitions
- Scanner input
- Declaring and initializing variables
- Assignment (=)
- int: variables, input, output
- doubles: variables, input, output
- Numeric operators
- Increment operators
- Assignment operators
- Type conversions (casting)
- Identifiers
- Keywords
|
Chapter 3
- Definitions
- Decisions: if statements
- Comparison operators
- Nested if statements
- Multi-way if statements
- Boolean type (true or false)
- Logical Operators
- Random Numbers
- Switch statements
- ?: operator
|
Chapter 4
- Math
- Math.PI, pow, sqrt, abs, min, max
- character data
- char as numeric data
- comparing characters
- adding/subtracting chars
- converting char to int
- Strings
- + operator on Strings
- charAt
- length
- equals, equalsIgnorCase
- toUpperCase, toLowerCase
- Scanner next and nextLine
- printf basic usages
- printf format strings
|