Java code examples