Java guide

Java code snippet and example