Add some Java code examples