Controlling Flow, Converting Types, and Handling Exceptions
This chapter is all about writing code that performs simple operations on variables, makes decisions, performs pattern matching, repeats statements or blocks, works with arrays to store multiple values, converts variable or expression values from one type to another, handles exceptions, and checks for overflows in number variables.
This chapter covers the following topics:
- Operating on variables
- Understanding selection statements
- Understanding iteration statements
- Storing multiple values in an array
- Casting and converting between types
- Handling exceptions
- Checking for overflow