In fact, today
Java is by some measures the most popular language for new work (http://www.tiobe.com/tpci.htm).
Many long books have been written teaching Java programming, and it is not our purpose in this chapter
to provide a complete tutorial on Java programming. Instead, we will introduce basic programming structures
and techniques with Java. We hope this exposure to one very good language will help readers to understand
ideas presented in other chapters on topics of software, algorithms, operating systems, etc.
In this chapter we will show small but complete programs you can try out for yourself. If you do not already
have access to a Java compiler and Java Virtual Machine (also called the Java Runtime Environment), you can
quickly download the entire Java package, including excellent documentation, directly from the Sun website
(http://java.sun.com/javase/). For work with this chapter, download the Java Standard Edition Development Kit
(JDK), which also includes the Java Runtime Environment.
It??™s also a good idea to download the documentation (called JavaDocs) to your own computer, if you have
the room on your disk. You can get to the same documentation on-line at the Sun website, but your access will
be faster if the files are resident on your own computer.
Pages:
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187