Java Templates and Samples
- TemplatB.java
- A template for a basic Java application
- Template.java
- A template for a GUI Java application which uses the Java AWT.
- TemplatA.java and TemplatA.html
- A template for a Java applet and an HTML file which loads it.
- FileTest.java
- File I/O and array processing demonstration. Reads records from an input file into an array and then writes the records from the array to an output fle. File names are retrieved from the command line.
- RecLen.java
- Reads lines from a text file and writes the length of each record. Also reports total number of lines and total number of data bytes. Command line parameter is the name of the file to be processed. Utilizes a simple command line interface.
- SelSort2.java
- Sorts a file of integers using selection sort. First command line parameter is the name of the file to be sorted and the second command line parameter is the output (sorted) file name. Utilizes a simple command line interface.
- SelSort6.java
- Also sorts a file of integers using selection sort. Uses a GUI interface.
- Frame.lis
- Example output from javap. Displays constants and methods of the Frame object.