add sample code for java
add package.json
add samples