java example
javascript example