Add Java sample