Initial and Add Sample for JAVA