Visit our online store at CafePress for items with the PING 127.0.0.1 Computer Services logo!

Please find below a list links to the source code of simple Java programs produced by PING 127.0.0.1 Computer Services.

All source code is distributed under the GNU General Public License
  1. textfile.java - prints out a text file.
  2. Compound9.java - a simple investment compounding program; the user is prompted for the number of years to invest, the amount per month to invest and the initial amount invested. It starts with a Swing text box, so it takes a few seconds to get started. Program takes 20% for taxes. A text file with the results is written to the directory where the program is run from. To compile: javac compound9.java. To run: java compound9.
  3. echo2.java - echoes back to the screen a line that is entered when the program is executed.
  4. Rwtest.java - takes a file entered when the program is run and prints it out to the screen character by character. Example of reading a file in character by character. To run: java Rwtest testfile.txt. File that gets read in is the 0th argument in the args[] array.
  5. regex1.java - small program that uses Java regular expressions.
  6. HelloDate.java - small program that creates and calls a static method.
  7. Bravo.java - small program that sets up 2 classes, the second which is extends the first. Calls methods from both classes.
  8. Capital.java - small program that tests a letter to see if it is a capital or not