O'Reilly logo

Android How to Program by Paul Deitel, Abbey Deitel, Harvey Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required