old example of java code

around 10 years old