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 ...

Get Android How to Program now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.