add ply first demo code for java