02-IntroToJava

02-IntroToJava - Chapter II Introduction to Java Page 45...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chapter II Introduction to Java Page 45 Chapter II Introduction to Java Chapter II Topics 2.1 Introduction 2.2 Getting Started with Java 2.3 A Visit to the United Nations 2.4 Java Bytecode 2.5 Applications and Applets 2.6 Installing the Java Development Kit 2.7 Installing the JCreator IDE 2.8 Text Output With println 2.9 Program Compile Errors 2.10 The Responsible Use of Computers 2.11 Summary Page 46 Exposure Java A, 2008 Edition 06-10-08 2.1 Introduction Some students are impatient in general, but when it comes to technology, many students are very impatient. Lots of students march in a computer science class with prior knowledge of using a computer. Such students have played fancy video games, emailed all over town, researched on the Internet, and used computers for word processing and many other applications. These students are not impressed with a dull - black & white - text output, program that displays: Hello Guys . Computer science is not very different from many other professions in the introductory stages. Few medical students perform open-heart surgery during the first week of medical school. The average law student is not asked to argue a case before the Supreme Court after studying one court case. Navy pilot candidates are not asked to land an airplane on an aircraft carrier at night, during a storm, with one engine shut down, during week-one of flight training. In other words, if you expect to waltz in and start creating programs that will land you a five- thousand dollars a week part-time job, then you will be disappointed. This chapter will start by showing you the necessary tools to write a simple Java program. Keep in mind that you will be creating your program in a high-level language, Java. This means you need some type of editing environment to write your program. After the program is written you need to go through several steps to create machine code that can be executed by the computer. Learning those fundamental program-writing skills is right now our primary concern. There are two primary output modes that are available with Java: text and graphics . Text is petty easy and pretty boring. Graphics is exciting, interesting and quite a bit more challenging. The focus in this chapter is to understand first how to execute small, simple text programs. Exciting video games, snazzy interactive web pages are all possible with Java. However, that is not a practical starting point. It is possible that you already know some other programming language, such as C++. If such is the case, you will learn Java much faster and you may find the topic descriptions in Exposure Java rather slow moving. That is fine, but keep in mind that this text book is written for the student who has no prior knowledge of any programming language or any exposure to computer science concepts. If you have such prior knowledge, you are lucky, but do be careful. Java is similar to some other program languages, but there are also major differences, which can...
View Full Document

Page1 / 62

02-IntroToJava - Chapter II Introduction to Java Page 45...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online