## A. Introduction to Java Applications

Objectives

In this appendix you’ll learn:

• To write simple Java applications.

• To use input and output statements.

• Java’s primitive types.

• Basic memory concepts.

• To use arithmetic operators.

• The precedence of arithmetic operators.

• To write decision-making statements.

• To use relational and equality operators.

Outline

**A.1** Introduction

**A.2** Your First Program in Java: Printing a Line of Text

**A.3** Modifying Your First Java Program

**A.4** Displaying Text with `printf`

**A.5** Another Application: Adding Integers

**A.6** Memory Concepts

**A.7** Arithmetic

**A.8** Decision Making: Equality and Relational Operators

**A.9** Wrap-Up

*Self-Review Exercises | Answers to Self-Review Exercises | Exercises*

### A.1. Introduction

This appendix ...