您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)

 

Content Index

Content Page # 26

Learning to program

As you start programming, you will find that your programs don't work. This is inevitable. The role of the instructor is to show you how to make them work. However, you will learn more if you put a good deal of effort into making them work yourself first. Often you will not have enough information to do this very effectively, and you will have to rely on a process of trial-and-error. This is perfectly normal in programming. At first, people make simple errors with the syntax of the language. 

Eventually the syntax will become second nature to you, and you won't even have to think about it. Then you will be able to spend more time on looking for the logical errors, that is, places where the programmer has told the computer to do something that is not really what is required. The computer will follow the program's instructions slavishly, and cannot be blamed when the program is incorrect.

Learning to program The best way to learn is by doing it.

    You should not be afraid to try different things to see if they work. In fact much of your learning will be through making mistakes, learning what those mistakes were, and how to avoid such mistakes in the future. A faulty Java program will never damage the computer. 

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg