Added code snippet of Java 1.5