for java code samples