Add examples in Java 6