Professor Matloff's Java Beginners' Web Page
- Norm Matloff's tutorial, A Quick,
Painless Introduction to the Java Programming Language. Also,
here are the sample programs from the tutorial,
Intro.java and NumNode.java.
- Some other short sample programs, illustrating
some other Java features.
- Dr. Matloff's quick tutorials on some free, small Java debuggers and
IDEs:
- Some other Java resources:
Other short sample programs:
- ReadInt.java, which shows how to
read in an integer from the keyboard (like %d in C's scanf()). It
also illustrates the use of BufferedReader, which is used on
text-based input streams for better I/O efficency and more
convenience.
- A pair of introductory programs on Java network programming. Svr.java and Clnt.java. A "tutorial" on Java network
programming is contained in the comments in these programs.
Those versions use only primitive byte-oriented I/O mechanisms.
By contrast, see the string-oriented versions,
SvrString.java and
ClntString.java.
- An example of how to convert between byte arrays and Java Strings,
BytesNStrings.java.
- An illustration of (byte-oriented) reading and writing of files
in Java, CpBytes.java. Includes
a file-append option, and also illustrates how to check whether a
file exists.
- An illustration of the use of the directory-listing method in the
File class, Dir.java.
- An introduction to Monte Carlo simulation using Java,
Coin.java.
Other software Web sites by Norm Matloff: