There are two ways you can use these programs. Either download the class, and try and write a program which will do the same thing , or download the java, and fiddle with it to see how it works. I recommend trying to write it yourself first.
The "What it shows" assumes you know the very basics, and only picks on the easiest program to use these ideas. Other programs may demonstrate the same ideas, but are more complicated.
This page is only updated occasionally. It appears to be in a bit of a mess, and this is being fixed before any new sample programs are being written.
Program | Command line | Swing | JApplet | What it shows |
---|---|---|---|---|
Funny Name | Command line inputs Random numbers |
|||
Index Demo | indexOf for Strings | |||
Leet | Switch on char How to talk like a hax0r |
|||
Brackets checker | Stack class | |||
NameNumber | ||||
Menus | While loops Menus (duh) |
|||
String Comparison | Vectors equals() for Strings. |
|||
Knowledge Base | XML Loading & saving files Menus being useful |
|||
Basic Random | Random Numbers |