Part 1. Fundamentals of Programming

 
[Page 1]
The Goddess Chalchihuitlicue, found in the Valley of Mexico, 1300-1500 AD (stone), Aztec / Muse de l'Homme, Paris, France / Bridgeman Art Library.

By now you have heard a lot about Java and are anxious to start writing Java programs. The first part of the book is a stepping stone that will prepare you to embark on the journey of learning Java. You will begin to know Java and will develop fundamental programming skills. Specifically, you will learn how to write simple Java programs with primitive data types, control statements, methods , and arrays.


[Page 2]

Prerequisites for Part 1

This book does not require any prior programming experience, nor any mathematics, other than elementary high school algebra and basic computer skills such as using Windows, Internet Explorer, and Microsoft Word.

You may cover the concept and simple examples of recursive programming in 19.119.3 in Chapter 19, "Recursion," after Chapter 5, "Methods."

You may cover Chapter 23, "Algorithm Efficiency and Sorting," after Chapter 6, "Arrays." Two simple sorting algorithms are introduced in Chapter 6. Chapter 23 introduces several advanced sorting algorithms.


 

Chapter 1 Introduction to Computers, Programs, and Java

 

Chapter 2 Primitive Data Types and Operations

 

Chapter 3 Selection Statements

 

Chapter 4 Loops

 

Chapter 5 Methods

 

Chapter 6 Arrays

[Page 3]

Chapter 1. Introduction to Computers, Programs, and Java

Mayan God Shel, Mexico. Photographer: Philip Coblentz. Courtesy Brand X Pictures.

Objectives

  • To review computer basics, programs, and operating systems (1.21.4).

  • (Optional) To represent numbers in binary, decimal, and hexadecimal (1.5).

  • To understand the relationship between Java and the World Wide Web (1.6).

  • To distinguish the terms API, IDE, and JDK (1.7).

  • To write a simple Java program (1.8).

  • To create, compile, and run Java programs (1.9).

  • To know the basic syntax of a Java program (1.10).

  • To display output in a dialog box (1.11).


[Page 4]

1.1. Introduction

You use word processors to write documents, Web browsers to explore the Internet, and email programs to send email over the Internet. Word processors, browsers, and email programs are all examples of software that runs on computers. Software is developed using programming languages. There are many programming languages. So why Java? The answer is that Java enables users to develop and deploy applications on the Internet for servers, desktop computers, and small hand-held devices. The future of computing is being profoundly influenced by the Internet, and Java promises to remain a big part of that future. Java is the Internet programming language.

You are about to begin an exciting journey, learning a powerful programming language. Before the journey, it is helpful to review computer basics, programs, and operating systems, and to become familiar with number systems. You may skip the review in 1.21.4 if you are familiar with such terms as CPU, memory, disks, operating systems, and programming languages. You may also skip 1.5 and use it as reference when you have questions regarding binary and hexadecimal numbers.

 


Introduction to Java Programming-Comprehensive Version
Introduction to Java Programming-Comprehensive Version (6th Edition)
ISBN: B000ONFLUM
EAN: N/A
Year: 2004
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net