Add java example
Fix typo