update Java Sample AI