Sample Java code snippets

Sample Java code snippets