␡
- 2.1 Introduction
- 2.2 Your First Program in Java: Printing a Line of Text
- 2.3 Modifying Your First Java Program
- 2.4 Displaying Text with printf
- 2.5 Another Application: Adding Integers
- 2.6 Memory Concepts
- 2.7 Arithmetic
- 2.8 Decision Making: Equality and Relational Operators
- 2.9 Wrap-Up
- Summary
- Self-Review Exercises
- Answers to Self-Review Exercises
- Exercises
- Making a Difference
This chapter is from the book
Self-Review Exercises
2.1 |
Fill in the blanks in each of the following statements:
|
2.2 |
State whether each of the following is true or false. If false, explain why.
|
2.3 |
Write statements to accomplish each of the following tasks:
|
2.4 |
Identify and correct the errors in each of the following statements:
|
2.5 |
Write declarations, statements or comments that accomplish each of the following tasks:
|
2.6 |
Using the statements you wrote in Exercise 2.5, write a complete program that calculates and prints the product of three integers. |