Here you will find sample programs that I have written. All source code is included. The download may sometimes only include the source file(s). In such cases, after you download the file(s), you may need to compile them using
| javac < filename > |
| java < filename > |
In cases where there is more than one source file, I have included a README.txt file that you have to read before you start using the associated application. This gives you more information about the application files, classes etc. The programs have been tested quite thoroughly, however, if you do encounter any problems, please let me know.
Please note that more programs will be added to this site as I find the time to do it. Please do check back again, to look for new stuff.
If you want to link to this page, please feel free to do so. However you cannot
reproduce the material here or change it in any way.
This is an application that simulates the Calculator that comes with Windows. It consists of just a single source file, Calculator.java.
Format: Java file. Size: 12KB.
#Mail ProgramIt is an application that simulates a mail system that receives and sends mails. It requires the Java Mail API to work. You can get it here . It includes a number of class files that have been zipped up for your convenience. The zip file contains both the source code as well as the class files for the program
Format: Zip file. Size: 53KB
#DatabaseSelect.javaThis is a java class file that tells you how to use JDBC to select from a database. Please note, that I have used Oracle as my database and hence have used the Oracle JDBC driver. If you are using any other JDBC source (like ODBC) you will have to use the appropriate driver. You can download the source file here
Format: Java file. Size: 4KB
|
|
||
| Thinking in Java | The Java (tm) Tutorial: A Short Course... | ||