BrettBits.com
My doctor gave me six months to live, but when I couldn't pay the bill he gave me six months more.


BrettBits > Java and Javascript Programs

Java and Javascript Programs

For The More Practical Among Us




Graph File Size Distribution
[30.5 KB]
Uploaded June 6th, 2007

(Java) Given a directory on a drive, and a minimum and maximum file size, this program will graph the frequency with which files within that size range appear in that directory (and all subdirectories). See screenshot.

Generate Code for HTML Tables
[3.55 KB]
Uploaded November 10th, 2006

(Javascript) This simple-to-use Javascript will create HTML code for any desired table size, as well as for several other customizable parameters.

Character/Word Combinations
[5.80 KB]
Uploaded July 21st, 2006

(Javascript) This Javascript program can read in a word or series of alphanumeric characters, and then calculate how many unique ways those characters can be rearranged. It will even print out all of those character combinations if you want it to!

Find Prime Numbers In Given Range
[2.34 KB]
Uploaded May 14th, 2006

(Java) Need to know all of the prime numbers in a given integer range? This program will do it for you!

Password Generator
[3.76 KB]
Uploaded August 7th, 2005

(Javascript) This program generates strong, random passwords based on certain parameters: password length, case sensitivity, and mandatory number policies.

Check Digit
[2.25 KB]
Uploaded April 15th, 2005

(Java) This program uses a simple modulo 10 operation to produce a check digit based upon the user's input digits. A good introduction to the concept of checksums.

Dice Sum Distribution Analysis
[2.28 KB]
Uploaded January 18th, 2005

(Java) A dice rolling simulation in its most basic form. This program will roll two 6-sided dice as many times as you specify, and then output how many times each dice combination occurred, as well as how many times specific sums occurred.

Calculate Pi
[1.49 KB]
Uploaded November 11th, 2004

(Java) This program calculates Mathematical Pi using the Leibniz formula for Pi: a very inefficient, but still simple-to-use method of calculating Pi.

Echo A User's Input String
[1.08 KB]
Uploaded September 2nd, 2004

(Java) This simple Java program will receive a String from the user's keyboard using Java's Scanner class, and then output (echo) the string back on the screen.

Convert Celsius To Fahrenheit
[1.32 KB]
Uploaded August 30th, 2004

(Java) A tool for converting temperatures in degrees Celsius to degrees Fahrenheit.

Background Color Changer
[6.39 KB]
Uploaded May 15th, 2003

(Javascript) This magnificent Javascript allows the user to input color codes, either as Red/Green/Blue decimal numbers, or as a 6 character hexadecimal code, and it will change the webpage's background color to that color. Great for testing color schemes!

Reverse Text
[967 bytes]
Uploaded March 27th, 2003

(Javascript) This Javascript will reverse the characters in a user-provided string.

Binary/Decimal Conversion
[2.75 KB]
Uploaded March 27th, 2003

(Javascript) This Javascript program will take any numerical binary or decimal and converts it to its respective decimal or binary representation. Very useful!

Text Field Clock
[1.62 KB]
Uploaded August 30th, 2002

(Javascript) Displays the current time in a text field using hh:mm:ss (AM/PM) format. This Javascript is great for beginners learning about Date/Time functions, delaying the execution of functions with setTimeout(), as well as updating webpage text field values using Javascript.


Share This Page!

Digg this!Add to Del.icio.usAdd to StumbleUponAdd to Facebook Profile
 



Subscribe to RSS feed