Varia HowTo
Unique ID
Use System time to generate unique ID
Get a unique identifier
Get the hard disk serial number or Motherboard Serial number
Algorithm
Sort an array 1
Sort an array 2
Do a selection sort
Validate a Social Security Number (canadian)
Validate a Credit Card Number
Class
Obtain from where a Class is loaded
Get the class name with or without the package
See the generated bytecode
Interesting
Self-replicating programs
A curiosity
Common Bugs
Number of the beast! :-)
Scripting engine (JDK1.6)
Use Java scripting engine (JDK 1.6)
Pass or retrieve values from a scripting engine (JDK 1.6)
Misc
Preventing multiple instances of an application
Trap JVM shutdown
Minimize all programs on Windows to show the Desktop
Display a progress indicator in the console
Varia HowTo
If you find this article useful, consider making a small donation
to show your support for this Web site and its content.
Written and compiled by Réal Gagnon ©1998-2010
[
home
]