Example of old Java code I did years ago.