sample code of java libraries.