Professor Matloff's Java Beginners' Web Page (original) (raw)
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.
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 andClntString.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.
His "Extremely Quick and Simple Introduction to the Vi Text editor," and his introductions to the elvis and vim extensions to vi. The latter are much better than ordinary vi (and far, far better than pico). X11 mouse capability; subwindows (even on nongraphics terminals); infinite undo; paragraph formatting and so on.
Dr. Matloff's introduction to the mutt e-mail utility. Don't use pine! It was designed for people who are afraid of computers, not for computer experts.